diracx-client 0.0.1a7__tar.gz → 0.0.1a8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/PKG-INFO +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/__init__.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/_client.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/_configuration.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/_vendor.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/__init__.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/_client.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/_configuration.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/_vendor.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/operations/__init__.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/operations/_operations.py +71 -2
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/models/__init__.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/models/_enums.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/models/_models.py +16 -16
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/operations/__init__.py +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/operations/_operations.py +109 -4
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/PKG-INFO +1 -1
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/README.md +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/pyproject.toml +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/setup.cfg +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/_patch.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/_serialization.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/_patch.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/operations/_patch.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/models/_patch.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/operations/_patch.py +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/py.typed +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/SOURCES.txt +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/dependency_links.txt +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/requires.txt +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/top_level.txt +0 -0
- {diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/tests/test_regenerate.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
5
5
|
|
{diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/operations/__init__.py
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
{diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx/client/aio/operations/_operations.py
RENAMED
@@ -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.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from io import IOBase
|
@@ -51,6 +51,7 @@ from ...operations._operations import (
|
|
51
51
|
build_jobs_reschedule_single_job_request,
|
52
52
|
build_jobs_search_request,
|
53
53
|
build_jobs_set_job_status_bulk_request,
|
54
|
+
build_jobs_set_single_job_properties_request,
|
54
55
|
build_jobs_set_single_job_status_request,
|
55
56
|
build_jobs_submit_bulk_jobs_request,
|
56
57
|
build_jobs_summary_request,
|
@@ -858,7 +859,7 @@ class ConfigOperations:
|
|
858
859
|
return deserialized
|
859
860
|
|
860
861
|
|
861
|
-
class JobsOperations:
|
862
|
+
class JobsOperations: # pylint: disable=too-many-public-methods
|
862
863
|
"""
|
863
864
|
.. warning::
|
864
865
|
**DO NOT** instantiate this class directly.
|
@@ -2064,6 +2065,74 @@ class JobsOperations:
|
|
2064
2065
|
|
2065
2066
|
return deserialized
|
2066
2067
|
|
2068
|
+
@distributed_trace_async
|
2069
|
+
async def set_single_job_properties(
|
2070
|
+
self, job_id: int, body: JSON, *, update_timestamp: bool = False, **kwargs: Any
|
2071
|
+
) -> Any:
|
2072
|
+
"""Set Single Job Properties.
|
2073
|
+
|
2074
|
+
Update the given job properties (MinorStatus, ApplicationStatus, etc).
|
2075
|
+
|
2076
|
+
:param job_id: Required.
|
2077
|
+
:type job_id: int
|
2078
|
+
:param body: Required.
|
2079
|
+
:type body: JSON
|
2080
|
+
:keyword update_timestamp: Default value is False.
|
2081
|
+
:paramtype update_timestamp: bool
|
2082
|
+
:return: any
|
2083
|
+
:rtype: any
|
2084
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
2085
|
+
"""
|
2086
|
+
error_map = {
|
2087
|
+
401: ClientAuthenticationError,
|
2088
|
+
404: ResourceNotFoundError,
|
2089
|
+
409: ResourceExistsError,
|
2090
|
+
304: ResourceNotModifiedError,
|
2091
|
+
}
|
2092
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
2093
|
+
|
2094
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2095
|
+
_params = kwargs.pop("params", {}) or {}
|
2096
|
+
|
2097
|
+
content_type: str = kwargs.pop(
|
2098
|
+
"content_type", _headers.pop("Content-Type", "application/json")
|
2099
|
+
)
|
2100
|
+
cls: ClsType[Any] = kwargs.pop("cls", None)
|
2101
|
+
|
2102
|
+
_json = self._serialize.body(body, "object")
|
2103
|
+
|
2104
|
+
request = build_jobs_set_single_job_properties_request(
|
2105
|
+
job_id=job_id,
|
2106
|
+
update_timestamp=update_timestamp,
|
2107
|
+
content_type=content_type,
|
2108
|
+
json=_json,
|
2109
|
+
headers=_headers,
|
2110
|
+
params=_params,
|
2111
|
+
)
|
2112
|
+
request.url = self._client.format_url(request.url)
|
2113
|
+
|
2114
|
+
_stream = False
|
2115
|
+
pipeline_response: PipelineResponse = (
|
2116
|
+
await self._client._pipeline.run( # pylint: disable=protected-access
|
2117
|
+
request, stream=_stream, **kwargs
|
2118
|
+
)
|
2119
|
+
)
|
2120
|
+
|
2121
|
+
response = pipeline_response.http_response
|
2122
|
+
|
2123
|
+
if response.status_code not in [200]:
|
2124
|
+
map_error(
|
2125
|
+
status_code=response.status_code, response=response, error_map=error_map
|
2126
|
+
)
|
2127
|
+
raise HttpResponseError(response=response)
|
2128
|
+
|
2129
|
+
deserialized = self._deserialize("object", pipeline_response)
|
2130
|
+
|
2131
|
+
if cls:
|
2132
|
+
return cls(pipeline_response, deserialized, {})
|
2133
|
+
|
2134
|
+
return deserialized
|
2135
|
+
|
2067
2136
|
@distributed_trace_async
|
2068
2137
|
async def kill_single_job(self, job_id: int, **kwargs: Any) -> Any:
|
2069
2138
|
"""Kill Single Job.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# pylint: disable=too-many-lines
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
|
@@ -341,8 +341,8 @@ class JobStatusReturn(_serialization.Model):
|
|
341
341
|
:vartype application_status: str
|
342
342
|
:ivar status_time: Statustime. Required.
|
343
343
|
:vartype status_time: ~datetime.datetime
|
344
|
-
:ivar
|
345
|
-
:vartype
|
344
|
+
:ivar source: Source. Required.
|
345
|
+
:vartype source: str
|
346
346
|
"""
|
347
347
|
|
348
348
|
_validation = {
|
@@ -350,7 +350,7 @@ class JobStatusReturn(_serialization.Model):
|
|
350
350
|
"minor_status": {"required": True},
|
351
351
|
"application_status": {"required": True},
|
352
352
|
"status_time": {"required": True},
|
353
|
-
"
|
353
|
+
"source": {"required": True},
|
354
354
|
}
|
355
355
|
|
356
356
|
_attribute_map = {
|
@@ -358,7 +358,7 @@ class JobStatusReturn(_serialization.Model):
|
|
358
358
|
"minor_status": {"key": "MinorStatus", "type": "str"},
|
359
359
|
"application_status": {"key": "ApplicationStatus", "type": "str"},
|
360
360
|
"status_time": {"key": "StatusTime", "type": "iso-8601"},
|
361
|
-
"
|
361
|
+
"source": {"key": "Source", "type": "str"},
|
362
362
|
}
|
363
363
|
|
364
364
|
def __init__(
|
@@ -368,7 +368,7 @@ class JobStatusReturn(_serialization.Model):
|
|
368
368
|
minor_status: str,
|
369
369
|
application_status: str,
|
370
370
|
status_time: datetime.datetime,
|
371
|
-
|
371
|
+
source: str,
|
372
372
|
**kwargs: Any,
|
373
373
|
) -> None:
|
374
374
|
"""
|
@@ -382,15 +382,15 @@ class JobStatusReturn(_serialization.Model):
|
|
382
382
|
:paramtype application_status: str
|
383
383
|
:keyword status_time: Statustime. Required.
|
384
384
|
:paramtype status_time: ~datetime.datetime
|
385
|
-
:keyword
|
386
|
-
:paramtype
|
385
|
+
:keyword source: Source. Required.
|
386
|
+
:paramtype source: str
|
387
387
|
"""
|
388
388
|
super().__init__(**kwargs)
|
389
389
|
self.status = status
|
390
390
|
self.minor_status = minor_status
|
391
391
|
self.application_status = application_status
|
392
392
|
self.status_time = status_time
|
393
|
-
self.
|
393
|
+
self.source = source
|
394
394
|
|
395
395
|
|
396
396
|
class JobStatusUpdate(_serialization.Model):
|
@@ -404,15 +404,15 @@ class JobStatusUpdate(_serialization.Model):
|
|
404
404
|
:vartype minor_status: str
|
405
405
|
:ivar application_status: Applicationstatus.
|
406
406
|
:vartype application_status: str
|
407
|
-
:ivar
|
408
|
-
:vartype
|
407
|
+
:ivar source: Source.
|
408
|
+
:vartype source: str
|
409
409
|
"""
|
410
410
|
|
411
411
|
_attribute_map = {
|
412
412
|
"status": {"key": "Status", "type": "str"},
|
413
413
|
"minor_status": {"key": "MinorStatus", "type": "str"},
|
414
414
|
"application_status": {"key": "ApplicationStatus", "type": "str"},
|
415
|
-
"
|
415
|
+
"source": {"key": "Source", "type": "str"},
|
416
416
|
}
|
417
417
|
|
418
418
|
def __init__(
|
@@ -421,7 +421,7 @@ class JobStatusUpdate(_serialization.Model):
|
|
421
421
|
status: Optional[Union[str, "_models.JobStatus"]] = None,
|
422
422
|
minor_status: Optional[str] = None,
|
423
423
|
application_status: Optional[str] = None,
|
424
|
-
|
424
|
+
source: str = "Unknown",
|
425
425
|
**kwargs: Any,
|
426
426
|
) -> None:
|
427
427
|
"""
|
@@ -433,14 +433,14 @@ class JobStatusUpdate(_serialization.Model):
|
|
433
433
|
:paramtype minor_status: str
|
434
434
|
:keyword application_status: Applicationstatus.
|
435
435
|
:paramtype application_status: str
|
436
|
-
:keyword
|
437
|
-
:paramtype
|
436
|
+
:keyword source: Source.
|
437
|
+
:paramtype source: str
|
438
438
|
"""
|
439
439
|
super().__init__(**kwargs)
|
440
440
|
self.status = status
|
441
441
|
self.minor_status = minor_status
|
442
442
|
self.application_status = application_status
|
443
|
-
self.
|
443
|
+
self.source = source
|
444
444
|
|
445
445
|
|
446
446
|
class JobSummaryParams(_serialization.Model):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -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.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.1, generator: @autorest/python@6.4.11)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from io import IOBase
|
@@ -480,7 +480,7 @@ def build_jobs_set_job_status_bulk_request(
|
|
480
480
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
481
481
|
|
482
482
|
return HttpRequest(
|
483
|
-
method="
|
483
|
+
method="PATCH", url=_url, params=_params, headers=_headers, **kwargs
|
484
484
|
)
|
485
485
|
|
486
486
|
|
@@ -638,6 +638,43 @@ def build_jobs_delete_single_job_request(job_id: int, **kwargs: Any) -> HttpRequ
|
|
638
638
|
return HttpRequest(method="DELETE", url=_url, headers=_headers, **kwargs)
|
639
639
|
|
640
640
|
|
641
|
+
def build_jobs_set_single_job_properties_request( # pylint: disable=name-too-long
|
642
|
+
job_id: int, *, json: JSON, update_timestamp: bool = False, **kwargs: Any
|
643
|
+
) -> HttpRequest:
|
644
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
645
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
646
|
+
|
647
|
+
content_type: Optional[str] = kwargs.pop(
|
648
|
+
"content_type", _headers.pop("Content-Type", None)
|
649
|
+
)
|
650
|
+
accept = _headers.pop("Accept", "application/json")
|
651
|
+
|
652
|
+
# Construct URL
|
653
|
+
_url = "/api/jobs/{job_id}"
|
654
|
+
path_format_arguments = {
|
655
|
+
"job_id": _SERIALIZER.url("job_id", job_id, "int"),
|
656
|
+
}
|
657
|
+
|
658
|
+
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
659
|
+
|
660
|
+
# Construct parameters
|
661
|
+
if update_timestamp is not None:
|
662
|
+
_params["update_timestamp"] = _SERIALIZER.query(
|
663
|
+
"update_timestamp", update_timestamp, "bool"
|
664
|
+
)
|
665
|
+
|
666
|
+
# Construct headers
|
667
|
+
if content_type is not None:
|
668
|
+
_headers["Content-Type"] = _SERIALIZER.header(
|
669
|
+
"content_type", content_type, "str"
|
670
|
+
)
|
671
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
672
|
+
|
673
|
+
return HttpRequest(
|
674
|
+
method="PATCH", url=_url, params=_params, headers=_headers, json=json, **kwargs
|
675
|
+
)
|
676
|
+
|
677
|
+
|
641
678
|
def build_jobs_kill_single_job_request(job_id: int, **kwargs: Any) -> HttpRequest:
|
642
679
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
643
680
|
|
@@ -726,7 +763,7 @@ def build_jobs_set_single_job_status_request(
|
|
726
763
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
727
764
|
|
728
765
|
return HttpRequest(
|
729
|
-
method="
|
766
|
+
method="PATCH", url=_url, params=_params, headers=_headers, **kwargs
|
730
767
|
)
|
731
768
|
|
732
769
|
|
@@ -1539,7 +1576,7 @@ class ConfigOperations:
|
|
1539
1576
|
return deserialized
|
1540
1577
|
|
1541
1578
|
|
1542
|
-
class JobsOperations:
|
1579
|
+
class JobsOperations: # pylint: disable=too-many-public-methods
|
1543
1580
|
"""
|
1544
1581
|
.. warning::
|
1545
1582
|
**DO NOT** instantiate this class directly.
|
@@ -2743,6 +2780,74 @@ class JobsOperations:
|
|
2743
2780
|
|
2744
2781
|
return deserialized
|
2745
2782
|
|
2783
|
+
@distributed_trace
|
2784
|
+
def set_single_job_properties(
|
2785
|
+
self, job_id: int, body: JSON, *, update_timestamp: bool = False, **kwargs: Any
|
2786
|
+
) -> Any:
|
2787
|
+
"""Set Single Job Properties.
|
2788
|
+
|
2789
|
+
Update the given job properties (MinorStatus, ApplicationStatus, etc).
|
2790
|
+
|
2791
|
+
:param job_id: Required.
|
2792
|
+
:type job_id: int
|
2793
|
+
:param body: Required.
|
2794
|
+
:type body: JSON
|
2795
|
+
:keyword update_timestamp: Default value is False.
|
2796
|
+
:paramtype update_timestamp: bool
|
2797
|
+
:return: any
|
2798
|
+
:rtype: any
|
2799
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
2800
|
+
"""
|
2801
|
+
error_map = {
|
2802
|
+
401: ClientAuthenticationError,
|
2803
|
+
404: ResourceNotFoundError,
|
2804
|
+
409: ResourceExistsError,
|
2805
|
+
304: ResourceNotModifiedError,
|
2806
|
+
}
|
2807
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
2808
|
+
|
2809
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2810
|
+
_params = kwargs.pop("params", {}) or {}
|
2811
|
+
|
2812
|
+
content_type: str = kwargs.pop(
|
2813
|
+
"content_type", _headers.pop("Content-Type", "application/json")
|
2814
|
+
)
|
2815
|
+
cls: ClsType[Any] = kwargs.pop("cls", None)
|
2816
|
+
|
2817
|
+
_json = self._serialize.body(body, "object")
|
2818
|
+
|
2819
|
+
request = build_jobs_set_single_job_properties_request(
|
2820
|
+
job_id=job_id,
|
2821
|
+
update_timestamp=update_timestamp,
|
2822
|
+
content_type=content_type,
|
2823
|
+
json=_json,
|
2824
|
+
headers=_headers,
|
2825
|
+
params=_params,
|
2826
|
+
)
|
2827
|
+
request.url = self._client.format_url(request.url)
|
2828
|
+
|
2829
|
+
_stream = False
|
2830
|
+
pipeline_response: PipelineResponse = (
|
2831
|
+
self._client._pipeline.run( # pylint: disable=protected-access
|
2832
|
+
request, stream=_stream, **kwargs
|
2833
|
+
)
|
2834
|
+
)
|
2835
|
+
|
2836
|
+
response = pipeline_response.http_response
|
2837
|
+
|
2838
|
+
if response.status_code not in [200]:
|
2839
|
+
map_error(
|
2840
|
+
status_code=response.status_code, response=response, error_map=error_map
|
2841
|
+
)
|
2842
|
+
raise HttpResponseError(response=response)
|
2843
|
+
|
2844
|
+
deserialized = self._deserialize("object", pipeline_response)
|
2845
|
+
|
2846
|
+
if cls:
|
2847
|
+
return cls(pipeline_response, deserialized, {})
|
2848
|
+
|
2849
|
+
return deserialized
|
2850
|
+
|
2746
2851
|
@distributed_trace
|
2747
2852
|
def kill_single_job(self, job_id: int, **kwargs: Any) -> Any:
|
2748
2853
|
"""Kill Single Job.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{diracx-client-0.0.1a7 → diracx-client-0.0.1a8}/src/diracx_client.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|