diracx-client 0.0.1a15__py3-none-any.whl → 0.0.1a17__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- diracx/client/__init__.py +1 -1
- diracx/client/_client.py +1 -1
- diracx/client/_configuration.py +1 -1
- diracx/client/_patch.py +24 -7
- diracx/client/_serialization.py +1 -1
- diracx/client/_vendor.py +1 -1
- diracx/client/aio/__init__.py +1 -1
- diracx/client/aio/_client.py +1 -1
- diracx/client/aio/_configuration.py +1 -1
- diracx/client/aio/_patch.py +13 -4
- diracx/client/aio/_vendor.py +1 -1
- diracx/client/aio/operations/__init__.py +1 -1
- diracx/client/aio/operations/_operations.py +124 -115
- diracx/client/models/__init__.py +3 -7
- diracx/client/models/_enums.py +13 -18
- diracx/client/models/_models.py +57 -42
- diracx/client/operations/__init__.py +1 -1
- diracx/client/operations/_operations.py +157 -148
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/METADATA +1 -1
- diracx_client-0.0.1a17.dist-info/RECORD +26 -0
- diracx_client-0.0.1a15.dist-info/RECORD +0 -26
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/WHEEL +0 -0
- {diracx_client-0.0.1a15.dist-info → diracx_client-0.0.1a17.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=too-many-lines,too-many-statements
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.13.19)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from io import IOBase
|
@@ -84,7 +84,9 @@ def build_well_known_installation_metadata_request(
|
|
84
84
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
85
85
|
|
86
86
|
|
87
|
-
def
|
87
|
+
def build_auth_initiate_device_flow_request(
|
88
|
+
*, client_id: str, scope: str, **kwargs: Any
|
89
|
+
) -> HttpRequest:
|
88
90
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
89
91
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
90
92
|
|
@@ -94,19 +96,18 @@ def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpR
|
|
94
96
|
_url = "/api/auth/device"
|
95
97
|
|
96
98
|
# Construct parameters
|
97
|
-
_params["
|
99
|
+
_params["client_id"] = _SERIALIZER.query("client_id", client_id, "str")
|
100
|
+
_params["scope"] = _SERIALIZER.query("scope", scope, "str")
|
98
101
|
|
99
102
|
# Construct headers
|
100
103
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
101
104
|
|
102
105
|
return HttpRequest(
|
103
|
-
method="
|
106
|
+
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
104
107
|
)
|
105
108
|
|
106
109
|
|
107
|
-
def
|
108
|
-
*, client_id: str, scope: str, **kwargs: Any
|
109
|
-
) -> HttpRequest:
|
110
|
+
def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpRequest:
|
110
111
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
111
112
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
112
113
|
|
@@ -116,14 +117,13 @@ def build_auth_initiate_device_flow_request(
|
|
116
117
|
_url = "/api/auth/device"
|
117
118
|
|
118
119
|
# Construct parameters
|
119
|
-
_params["
|
120
|
-
_params["scope"] = _SERIALIZER.query("scope", scope, "str")
|
120
|
+
_params["user_code"] = _SERIALIZER.query("user_code", user_code, "str")
|
121
121
|
|
122
122
|
# Construct headers
|
123
123
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
124
124
|
|
125
125
|
return HttpRequest(
|
126
|
-
method="
|
126
|
+
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
127
127
|
)
|
128
128
|
|
129
129
|
|
@@ -306,6 +306,29 @@ def build_config_serve_config_request(
|
|
306
306
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
307
307
|
|
308
308
|
|
309
|
+
def build_jobs_initiate_sandbox_upload_request(
|
310
|
+
**kwargs: Any,
|
311
|
+
) -> HttpRequest: # pylint: disable=name-too-long
|
312
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
313
|
+
|
314
|
+
content_type: Optional[str] = kwargs.pop(
|
315
|
+
"content_type", _headers.pop("Content-Type", None)
|
316
|
+
)
|
317
|
+
accept = _headers.pop("Accept", "application/json")
|
318
|
+
|
319
|
+
# Construct URL
|
320
|
+
_url = "/api/jobs/sandbox"
|
321
|
+
|
322
|
+
# Construct headers
|
323
|
+
if content_type is not None:
|
324
|
+
_headers["Content-Type"] = _SERIALIZER.header(
|
325
|
+
"content_type", content_type, "str"
|
326
|
+
)
|
327
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
328
|
+
|
329
|
+
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
330
|
+
|
331
|
+
|
309
332
|
def build_jobs_get_sandbox_file_request(*, pfn: str, **kwargs: Any) -> HttpRequest:
|
310
333
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
311
334
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
@@ -332,29 +355,6 @@ def build_jobs_get_sandbox_file_request(*, pfn: str, **kwargs: Any) -> HttpReque
|
|
332
355
|
)
|
333
356
|
|
334
357
|
|
335
|
-
def build_jobs_initiate_sandbox_upload_request(
|
336
|
-
**kwargs: Any,
|
337
|
-
) -> HttpRequest: # pylint: disable=name-too-long
|
338
|
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
339
|
-
|
340
|
-
content_type: Optional[str] = kwargs.pop(
|
341
|
-
"content_type", _headers.pop("Content-Type", None)
|
342
|
-
)
|
343
|
-
accept = _headers.pop("Accept", "application/json")
|
344
|
-
|
345
|
-
# Construct URL
|
346
|
-
_url = "/api/jobs/sandbox"
|
347
|
-
|
348
|
-
# Construct headers
|
349
|
-
if content_type is not None:
|
350
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
351
|
-
"content_type", content_type, "str"
|
352
|
-
)
|
353
|
-
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
354
|
-
|
355
|
-
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
356
|
-
|
357
|
-
|
358
358
|
def build_jobs_unassign_bulk_jobs_sandboxes_request( # pylint: disable=name-too-long
|
359
359
|
*, jobs_ids: List[int], **kwargs: Any
|
360
360
|
) -> HttpRequest:
|
@@ -672,7 +672,7 @@ def build_jobs_reschedule_single_job_request(job_id: int, **kwargs: Any) -> Http
|
|
672
672
|
|
673
673
|
|
674
674
|
def build_jobs_search_request(
|
675
|
-
*, page: int =
|
675
|
+
*, page: int = 1, per_page: int = 100, **kwargs: Any
|
676
676
|
) -> HttpRequest:
|
677
677
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
678
678
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
@@ -1069,22 +1069,25 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1069
1069
|
)
|
1070
1070
|
|
1071
1071
|
@distributed_trace
|
1072
|
-
def
|
1073
|
-
|
1072
|
+
def initiate_device_flow(
|
1073
|
+
self, *, client_id: str, scope: str, **kwargs: Any
|
1074
|
+
) -> _models.InitiateDeviceFlowResponse:
|
1075
|
+
"""Initiate Device Flow.
|
1074
1076
|
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1077
|
+
Initiate the device flow against DIRAC authorization Server.
|
1078
|
+
Scope must have exactly up to one ``group`` (otherwise default) and
|
1079
|
+
one or more ``property`` scope.
|
1080
|
+
If no property, then get default one
|
1078
1081
|
|
1079
|
-
|
1080
|
-
|
1081
|
-
device flow.
|
1082
|
-
(note: it can't be put as parameter or in the URL).
|
1082
|
+
Offers the user to go with the browser to
|
1083
|
+
``auth/<vo>/device?user_code=XYZ``.
|
1083
1084
|
|
1084
|
-
:keyword
|
1085
|
-
:paramtype
|
1086
|
-
:
|
1087
|
-
:
|
1085
|
+
:keyword client_id: Required.
|
1086
|
+
:paramtype client_id: str
|
1087
|
+
:keyword scope: Required.
|
1088
|
+
:paramtype scope: str
|
1089
|
+
:return: InitiateDeviceFlowResponse
|
1090
|
+
:rtype: ~client.models.InitiateDeviceFlowResponse
|
1088
1091
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1089
1092
|
"""
|
1090
1093
|
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
@@ -1098,10 +1101,11 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1098
1101
|
_headers = kwargs.pop("headers", {}) or {}
|
1099
1102
|
_params = kwargs.pop("params", {}) or {}
|
1100
1103
|
|
1101
|
-
cls: ClsType[
|
1104
|
+
cls: ClsType[_models.InitiateDeviceFlowResponse] = kwargs.pop("cls", None)
|
1102
1105
|
|
1103
|
-
_request =
|
1104
|
-
|
1106
|
+
_request = build_auth_initiate_device_flow_request(
|
1107
|
+
client_id=client_id,
|
1108
|
+
scope=scope,
|
1105
1109
|
headers=_headers,
|
1106
1110
|
params=_params,
|
1107
1111
|
)
|
@@ -1124,7 +1128,9 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1124
1128
|
)
|
1125
1129
|
raise HttpResponseError(response=response)
|
1126
1130
|
|
1127
|
-
deserialized = self._deserialize(
|
1131
|
+
deserialized = self._deserialize(
|
1132
|
+
"InitiateDeviceFlowResponse", pipeline_response
|
1133
|
+
)
|
1128
1134
|
|
1129
1135
|
if cls:
|
1130
1136
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1132,25 +1138,22 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1132
1138
|
return deserialized # type: ignore
|
1133
1139
|
|
1134
1140
|
@distributed_trace
|
1135
|
-
def
|
1136
|
-
|
1137
|
-
) -> _models.InitiateDeviceFlowResponse:
|
1138
|
-
"""Initiate Device Flow.
|
1141
|
+
def do_device_flow(self, *, user_code: str, **kwargs: Any) -> Any:
|
1142
|
+
"""Do Device Flow.
|
1139
1143
|
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
If no property, then get default one
|
1144
|
+
This is called as the verification URI for the device flow.
|
1145
|
+
It will redirect to the actual OpenID server (IAM, CheckIn) to
|
1146
|
+
perform a authorization code flow.
|
1144
1147
|
|
1145
|
-
|
1146
|
-
|
1148
|
+
We set the user_code obtained from the device flow in a cookie
|
1149
|
+
to be able to map the authorization flow with the corresponding
|
1150
|
+
device flow.
|
1151
|
+
(note: it can't be put as parameter or in the URL).
|
1147
1152
|
|
1148
|
-
:keyword
|
1149
|
-
:paramtype
|
1150
|
-
:
|
1151
|
-
:
|
1152
|
-
:return: InitiateDeviceFlowResponse
|
1153
|
-
:rtype: ~client.models.InitiateDeviceFlowResponse
|
1153
|
+
:keyword user_code: Required.
|
1154
|
+
:paramtype user_code: str
|
1155
|
+
:return: any
|
1156
|
+
:rtype: any
|
1154
1157
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1155
1158
|
"""
|
1156
1159
|
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
@@ -1164,11 +1167,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1164
1167
|
_headers = kwargs.pop("headers", {}) or {}
|
1165
1168
|
_params = kwargs.pop("params", {}) or {}
|
1166
1169
|
|
1167
|
-
cls: ClsType[
|
1170
|
+
cls: ClsType[Any] = kwargs.pop("cls", None)
|
1168
1171
|
|
1169
|
-
_request =
|
1170
|
-
|
1171
|
-
scope=scope,
|
1172
|
+
_request = build_auth_do_device_flow_request(
|
1173
|
+
user_code=user_code,
|
1172
1174
|
headers=_headers,
|
1173
1175
|
params=_params,
|
1174
1176
|
)
|
@@ -1191,9 +1193,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1191
1193
|
)
|
1192
1194
|
raise HttpResponseError(response=response)
|
1193
1195
|
|
1194
|
-
deserialized = self._deserialize(
|
1195
|
-
"InitiateDeviceFlowResponse", pipeline_response
|
1196
|
-
)
|
1196
|
+
deserialized = self._deserialize("object", pipeline_response)
|
1197
1197
|
|
1198
1198
|
if cls:
|
1199
1199
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1763,70 +1763,6 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1763
1763
|
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1764
1764
|
)
|
1765
1765
|
|
1766
|
-
@distributed_trace
|
1767
|
-
def get_sandbox_file(
|
1768
|
-
self, *, pfn: str, **kwargs: Any
|
1769
|
-
) -> _models.SandboxDownloadResponse:
|
1770
|
-
"""Get Sandbox File.
|
1771
|
-
|
1772
|
-
Get a presigned URL to download a sandbox file
|
1773
|
-
|
1774
|
-
This route cannot use a redirect response most clients will also send the
|
1775
|
-
authorization header when following a redirect. This is not desirable as
|
1776
|
-
it would leak the authorization token to the storage backend. Additionally,
|
1777
|
-
most storage backends return an error when they receive an authorization
|
1778
|
-
header for a presigned URL.
|
1779
|
-
|
1780
|
-
:keyword pfn: Required.
|
1781
|
-
:paramtype pfn: str
|
1782
|
-
:return: SandboxDownloadResponse
|
1783
|
-
:rtype: ~client.models.SandboxDownloadResponse
|
1784
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
1785
|
-
"""
|
1786
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1787
|
-
401: ClientAuthenticationError,
|
1788
|
-
404: ResourceNotFoundError,
|
1789
|
-
409: ResourceExistsError,
|
1790
|
-
304: ResourceNotModifiedError,
|
1791
|
-
}
|
1792
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
1793
|
-
|
1794
|
-
_headers = kwargs.pop("headers", {}) or {}
|
1795
|
-
_params = kwargs.pop("params", {}) or {}
|
1796
|
-
|
1797
|
-
cls: ClsType[_models.SandboxDownloadResponse] = kwargs.pop("cls", None)
|
1798
|
-
|
1799
|
-
_request = build_jobs_get_sandbox_file_request(
|
1800
|
-
pfn=pfn,
|
1801
|
-
headers=_headers,
|
1802
|
-
params=_params,
|
1803
|
-
)
|
1804
|
-
_request.url = self._client.format_url(_request.url)
|
1805
|
-
|
1806
|
-
_stream = False
|
1807
|
-
pipeline_response: PipelineResponse = (
|
1808
|
-
self._client._pipeline.run( # pylint: disable=protected-access
|
1809
|
-
_request, stream=_stream, **kwargs
|
1810
|
-
)
|
1811
|
-
)
|
1812
|
-
|
1813
|
-
response = pipeline_response.http_response
|
1814
|
-
|
1815
|
-
if response.status_code not in [200]:
|
1816
|
-
if _stream:
|
1817
|
-
response.read() # Load the body in memory and close the socket
|
1818
|
-
map_error(
|
1819
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1820
|
-
)
|
1821
|
-
raise HttpResponseError(response=response)
|
1822
|
-
|
1823
|
-
deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response)
|
1824
|
-
|
1825
|
-
if cls:
|
1826
|
-
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1827
|
-
|
1828
|
-
return deserialized # type: ignore
|
1829
|
-
|
1830
1766
|
@overload
|
1831
1767
|
def initiate_sandbox_upload(
|
1832
1768
|
self,
|
@@ -1956,6 +1892,70 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1956
1892
|
|
1957
1893
|
return deserialized # type: ignore
|
1958
1894
|
|
1895
|
+
@distributed_trace
|
1896
|
+
def get_sandbox_file(
|
1897
|
+
self, *, pfn: str, **kwargs: Any
|
1898
|
+
) -> _models.SandboxDownloadResponse:
|
1899
|
+
"""Get Sandbox File.
|
1900
|
+
|
1901
|
+
Get a presigned URL to download a sandbox file
|
1902
|
+
|
1903
|
+
This route cannot use a redirect response most clients will also send the
|
1904
|
+
authorization header when following a redirect. This is not desirable as
|
1905
|
+
it would leak the authorization token to the storage backend. Additionally,
|
1906
|
+
most storage backends return an error when they receive an authorization
|
1907
|
+
header for a presigned URL.
|
1908
|
+
|
1909
|
+
:keyword pfn: Required.
|
1910
|
+
:paramtype pfn: str
|
1911
|
+
:return: SandboxDownloadResponse
|
1912
|
+
:rtype: ~client.models.SandboxDownloadResponse
|
1913
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1914
|
+
"""
|
1915
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1916
|
+
401: ClientAuthenticationError,
|
1917
|
+
404: ResourceNotFoundError,
|
1918
|
+
409: ResourceExistsError,
|
1919
|
+
304: ResourceNotModifiedError,
|
1920
|
+
}
|
1921
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
1922
|
+
|
1923
|
+
_headers = kwargs.pop("headers", {}) or {}
|
1924
|
+
_params = kwargs.pop("params", {}) or {}
|
1925
|
+
|
1926
|
+
cls: ClsType[_models.SandboxDownloadResponse] = kwargs.pop("cls", None)
|
1927
|
+
|
1928
|
+
_request = build_jobs_get_sandbox_file_request(
|
1929
|
+
pfn=pfn,
|
1930
|
+
headers=_headers,
|
1931
|
+
params=_params,
|
1932
|
+
)
|
1933
|
+
_request.url = self._client.format_url(_request.url)
|
1934
|
+
|
1935
|
+
_stream = False
|
1936
|
+
pipeline_response: PipelineResponse = (
|
1937
|
+
self._client._pipeline.run( # pylint: disable=protected-access
|
1938
|
+
_request, stream=_stream, **kwargs
|
1939
|
+
)
|
1940
|
+
)
|
1941
|
+
|
1942
|
+
response = pipeline_response.http_response
|
1943
|
+
|
1944
|
+
if response.status_code not in [200]:
|
1945
|
+
if _stream:
|
1946
|
+
response.read() # Load the body in memory and close the socket
|
1947
|
+
map_error(
|
1948
|
+
status_code=response.status_code, response=response, error_map=error_map
|
1949
|
+
)
|
1950
|
+
raise HttpResponseError(response=response)
|
1951
|
+
|
1952
|
+
deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response)
|
1953
|
+
|
1954
|
+
if cls:
|
1955
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1956
|
+
|
1957
|
+
return deserialized # type: ignore
|
1958
|
+
|
1959
1959
|
@distributed_trace
|
1960
1960
|
def unassign_bulk_jobs_sandboxes(
|
1961
1961
|
self, *, jobs_ids: List[int], **kwargs: Any
|
@@ -2191,7 +2191,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2191
2191
|
def assign_sandbox_to_job(self, job_id: int, body: str, **kwargs: Any) -> Any:
|
2192
2192
|
"""Assign Sandbox To Job.
|
2193
2193
|
|
2194
|
-
|
2194
|
+
Map the pfn as output sandbox to job.
|
2195
2195
|
|
2196
2196
|
:param job_id: Required.
|
2197
2197
|
:type job_id: int
|
@@ -2894,7 +2894,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2894
2894
|
self,
|
2895
2895
|
body: Optional[_models.JobSearchParams] = None,
|
2896
2896
|
*,
|
2897
|
-
page: int =
|
2897
|
+
page: int = 1,
|
2898
2898
|
per_page: int = 100,
|
2899
2899
|
content_type: str = "application/json",
|
2900
2900
|
**kwargs: Any,
|
@@ -2907,7 +2907,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2907
2907
|
|
2908
2908
|
:param body: Default value is None.
|
2909
2909
|
:type body: ~client.models.JobSearchParams
|
2910
|
-
:keyword page: Default value is
|
2910
|
+
:keyword page: Default value is 1.
|
2911
2911
|
:paramtype page: int
|
2912
2912
|
:keyword per_page: Default value is 100.
|
2913
2913
|
:paramtype per_page: int
|
@@ -2924,7 +2924,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2924
2924
|
self,
|
2925
2925
|
body: Optional[IO[bytes]] = None,
|
2926
2926
|
*,
|
2927
|
-
page: int =
|
2927
|
+
page: int = 1,
|
2928
2928
|
per_page: int = 100,
|
2929
2929
|
content_type: str = "application/json",
|
2930
2930
|
**kwargs: Any,
|
@@ -2937,7 +2937,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2937
2937
|
|
2938
2938
|
:param body: Default value is None.
|
2939
2939
|
:type body: IO[bytes]
|
2940
|
-
:keyword page: Default value is
|
2940
|
+
:keyword page: Default value is 1.
|
2941
2941
|
:paramtype page: int
|
2942
2942
|
:keyword per_page: Default value is 100.
|
2943
2943
|
:paramtype per_page: int
|
@@ -2954,7 +2954,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2954
2954
|
self,
|
2955
2955
|
body: Optional[Union[_models.JobSearchParams, IO[bytes]]] = None,
|
2956
2956
|
*,
|
2957
|
-
page: int =
|
2957
|
+
page: int = 1,
|
2958
2958
|
per_page: int = 100,
|
2959
2959
|
**kwargs: Any,
|
2960
2960
|
) -> List[JSON]:
|
@@ -2966,7 +2966,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2966
2966
|
|
2967
2967
|
:param body: Is either a JobSearchParams type or a IO[bytes] type. Default value is None.
|
2968
2968
|
:type body: ~client.models.JobSearchParams or IO[bytes]
|
2969
|
-
:keyword page: Default value is
|
2969
|
+
:keyword page: Default value is 1.
|
2970
2970
|
:paramtype page: int
|
2971
2971
|
:keyword per_page: Default value is 100.
|
2972
2972
|
:paramtype per_page: int
|
@@ -3021,7 +3021,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3021
3021
|
|
3022
3022
|
response = pipeline_response.http_response
|
3023
3023
|
|
3024
|
-
if response.status_code not in [200]:
|
3024
|
+
if response.status_code not in [200, 206]:
|
3025
3025
|
if _stream:
|
3026
3026
|
response.read() # Load the body in memory and close the socket
|
3027
3027
|
map_error(
|
@@ -3029,10 +3029,19 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3029
3029
|
)
|
3030
3030
|
raise HttpResponseError(response=response)
|
3031
3031
|
|
3032
|
-
|
3032
|
+
response_headers = {}
|
3033
|
+
if response.status_code == 200:
|
3034
|
+
deserialized = self._deserialize("[object]", pipeline_response)
|
3035
|
+
|
3036
|
+
if response.status_code == 206:
|
3037
|
+
response_headers["Content-Range"] = self._deserialize(
|
3038
|
+
"str", response.headers.get("Content-Range")
|
3039
|
+
)
|
3040
|
+
|
3041
|
+
deserialized = self._deserialize("[object]", pipeline_response)
|
3033
3042
|
|
3034
3043
|
if cls:
|
3035
|
-
return cls(pipeline_response, deserialized,
|
3044
|
+
return cls(pipeline_response, deserialized, response_headers) # type: ignore
|
3036
3045
|
|
3037
3046
|
return deserialized # type: ignore
|
3038
3047
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
diracx/client/__init__.py,sha256=NpsBFQPgWn_D_IVhT2RbRy0Y9oIKicEh6QBD0zGYHy4,701
|
2
|
+
diracx/client/_client.py,sha256=agmWB402dpROnDRlqL_StInHTBIqDj-ZLSPinGfrxGk,4788
|
3
|
+
diracx/client/_configuration.py,sha256=87XGycT5MOvmixM7v4Hq8kGsJhDAA6Zv_8pxO2sCAvQ,1937
|
4
|
+
diracx/client/_patch.py,sha256=Dgf3pYZrSRurPsx6yxio9kMRmW30LHNEqL744ksZiPI,9130
|
5
|
+
diracx/client/_serialization.py,sha256=jd8QTNv6p8YvcNhCkJPIjiZyuVQL55YEGOpy4cVcVzI,80965
|
6
|
+
diracx/client/_vendor.py,sha256=ubmRRLS5-52w6qbvaWwOZBz-gS-MH3StxRlmXROIMvs,1937
|
7
|
+
diracx/client/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
8
|
+
diracx/client/aio/__init__.py,sha256=NpsBFQPgWn_D_IVhT2RbRy0Y9oIKicEh6QBD0zGYHy4,701
|
9
|
+
diracx/client/aio/_client.py,sha256=zaVOzCPZfUPTTXfHohO7fm43mjo5_zPHVWFwG0ZSvOs,4909
|
10
|
+
diracx/client/aio/_configuration.py,sha256=5AiZRmwQ1B8SjUPIY6bYtD-V71eumeHxQUj7Maigs4c,1969
|
11
|
+
diracx/client/aio/_patch.py,sha256=fCRZTD-wvBE2-QZo4jiN1OsZzM2mWbtSAXk9X9Als9Q,6688
|
12
|
+
diracx/client/aio/_vendor.py,sha256=ubmRRLS5-52w6qbvaWwOZBz-gS-MH3StxRlmXROIMvs,1937
|
13
|
+
diracx/client/aio/operations/__init__.py,sha256=NpQ6cr321ysggDkN62imu0BAD6VXTF2GZNG0Zs6hqj4,869
|
14
|
+
diracx/client/aio/operations/_operations.py,sha256=mM1UgFGr3e5KeE591Bb0drPjz1VNdzLZ1-_SKtcHQ18,99720
|
15
|
+
diracx/client/aio/operations/_patch.py,sha256=3oHjHqBF7DXruMSVUTRxW0Xpv_mY1WaB8iyo47YBTec,4229
|
16
|
+
diracx/client/models/__init__.py,sha256=cidagrv48gYiRwqXgAtkiAG2CBHoEF5aMuKt8gqOOjE,3043
|
17
|
+
diracx/client/models/_enums.py,sha256=Cn1A9abUE1EK7Z5saAFj5Ea6sk_QdcvDsdMbZiyGFlo,2395
|
18
|
+
diracx/client/models/_models.py,sha256=jzLNS8kQO8U0x_CAAjtuK--K5rZrUkLXaLRdFiNV13s,38145
|
19
|
+
diracx/client/models/_patch.py,sha256=uvLwKzjWO_t-VZ4aSuLhuJ05RVxAP9UJxZV3XDeGMnU,1497
|
20
|
+
diracx/client/operations/__init__.py,sha256=NpQ6cr321ysggDkN62imu0BAD6VXTF2GZNG0Zs6hqj4,869
|
21
|
+
diracx/client/operations/_operations.py,sha256=Favj5uZ_UeRbA0UT2FYJSENNpH6qz2IkcQu0TNAjGiI,124423
|
22
|
+
diracx/client/operations/_patch.py,sha256=FvemlcswH_zZkdyoGObyTwRnwTsYIZJa3seO66C2BQI,4202
|
23
|
+
diracx_client-0.0.1a17.dist-info/METADATA,sha256=4j7me5xo62UKHy4tvS7EgJ6gcffP_Cbjg6QWoyhRH9A,679
|
24
|
+
diracx_client-0.0.1a17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
25
|
+
diracx_client-0.0.1a17.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
26
|
+
diracx_client-0.0.1a17.dist-info/RECORD,,
|
@@ -1,26 +0,0 @@
|
|
1
|
-
diracx/client/__init__.py,sha256=vRultgzi8Ap6Y7eP_9biCoVTecFP9Ks_idL2IYRZ_oM,700
|
2
|
-
diracx/client/_client.py,sha256=6vzBYImIFklYb_Lu5AVQRWf8mWXz5w536GIIzsd5uAg,4787
|
3
|
-
diracx/client/_configuration.py,sha256=Squx0gOi1EU4WcwdqtNkpNS2CnMNmCBakCZkVO_0ZEM,1936
|
4
|
-
diracx/client/_patch.py,sha256=EJ7EEF3L_FAyUN9ydJjquGYMWmZpzoIJshL1KjDMjeE,8369
|
5
|
-
diracx/client/_serialization.py,sha256=Xll7xvrfZ5vf-oA3wZcOYJdvE0qsSnPNDNwwGkfDObI,80945
|
6
|
-
diracx/client/_vendor.py,sha256=dqCPW3tOBCg5zt-p8yuylkXYQmjxCFcn9Qwi4J1r5RY,1936
|
7
|
-
diracx/client/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
8
|
-
diracx/client/aio/__init__.py,sha256=vRultgzi8Ap6Y7eP_9biCoVTecFP9Ks_idL2IYRZ_oM,700
|
9
|
-
diracx/client/aio/_client.py,sha256=HVTaSSlTlDf3RwFQ1Kj-bQx9_JljOGNeoyft5w1RReg,4908
|
10
|
-
diracx/client/aio/_configuration.py,sha256=zin4vjZYmrMT-p2FO0qsw7Chp7geu7hrv-n_mUD_mUw,1968
|
11
|
-
diracx/client/aio/_patch.py,sha256=ECR5LOruIBLY4uqFd-5rTPCoor9WFYI2TzI6A5GKchk,6365
|
12
|
-
diracx/client/aio/_vendor.py,sha256=dqCPW3tOBCg5zt-p8yuylkXYQmjxCFcn9Qwi4J1r5RY,1936
|
13
|
-
diracx/client/aio/operations/__init__.py,sha256=a2vwEBUHCyRJB_EH2_TW9ZWyN1_xwtthFcvy7qBXSlg,868
|
14
|
-
diracx/client/aio/operations/_operations.py,sha256=nwPRtwrInMJwEm1ANzgZl2M-Yo4sylNE324MybF8rXU,99367
|
15
|
-
diracx/client/aio/operations/_patch.py,sha256=3oHjHqBF7DXruMSVUTRxW0Xpv_mY1WaB8iyo47YBTec,4229
|
16
|
-
diracx/client/models/__init__.py,sha256=vMJg90Cc_sb91cCR-RTIJUubn914EKpJIquAgGU91Cg,3133
|
17
|
-
diracx/client/models/_enums.py,sha256=t-D7xJjl-jI5-6rXXxOEInaPyXT-Ts4ScSSAshNrPcg,2450
|
18
|
-
diracx/client/models/_models.py,sha256=68R44FFdE7svv5MuGO1mITQp3OGuMuKho5pWYJRqG94,37516
|
19
|
-
diracx/client/models/_patch.py,sha256=uvLwKzjWO_t-VZ4aSuLhuJ05RVxAP9UJxZV3XDeGMnU,1497
|
20
|
-
diracx/client/operations/__init__.py,sha256=a2vwEBUHCyRJB_EH2_TW9ZWyN1_xwtthFcvy7qBXSlg,868
|
21
|
-
diracx/client/operations/_operations.py,sha256=6O9tHqmop1fC8B3CQabvD9O8KIaSoiU5sPSqWbPukbA,124070
|
22
|
-
diracx/client/operations/_patch.py,sha256=FvemlcswH_zZkdyoGObyTwRnwTsYIZJa3seO66C2BQI,4202
|
23
|
-
diracx_client-0.0.1a15.dist-info/METADATA,sha256=azULDJ11vMgW7GLPUTBjOC02ys40SXZ8zRKKAKOGueM,679
|
24
|
-
diracx_client-0.0.1a15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
25
|
-
diracx_client-0.0.1a15.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
26
|
-
diracx_client-0.0.1a15.dist-info/RECORD,,
|
File without changes
|
File without changes
|