diracx-client 0.0.1a19__py3-none-any.whl → 0.0.1a21__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/generated/__init__.py +11 -5
- diracx/client/generated/_client.py +1 -1
- diracx/client/generated/_configuration.py +1 -1
- diracx/client/generated/_serialization.py +13 -14
- diracx/client/generated/_vendor.py +1 -1
- diracx/client/generated/aio/__init__.py +11 -5
- diracx/client/generated/aio/_client.py +1 -1
- diracx/client/generated/aio/_configuration.py +1 -1
- diracx/client/generated/aio/_vendor.py +1 -1
- diracx/client/generated/aio/operations/__init__.py +13 -7
- diracx/client/generated/aio/operations/_operations.py +502 -1385
- diracx/client/generated/models/__init__.py +51 -52
- diracx/client/generated/models/_enums.py +1 -33
- diracx/client/generated/models/_models.py +42 -122
- diracx/client/generated/operations/__init__.py +13 -7
- diracx/client/generated/operations/_operations.py +576 -1739
- diracx/client/patches/aio/utils.py +34 -34
- diracx/client/patches/utils.py +156 -75
- {diracx_client-0.0.1a19.dist-info → diracx_client-0.0.1a21.dist-info}/METADATA +1 -2
- diracx_client-0.0.1a21.dist-info/RECORD +36 -0
- {diracx_client-0.0.1a19.dist-info → diracx_client-0.0.1a21.dist-info}/WHEEL +1 -1
- diracx_client-0.0.1a19.dist-info/RECORD +0 -36
- {diracx_client-0.0.1a19.dist-info → diracx_client-0.0.1a21.dist-info}/entry_points.txt +0 -0
- {diracx_client-0.0.1a19.dist-info → diracx_client-0.0.1a21.dist-info}/top_level.txt +0 -0
@@ -1,21 +1,27 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
|
+
# pylint: disable=wrong-import-position
|
6
7
|
|
7
|
-
from
|
8
|
+
from typing import TYPE_CHECKING
|
9
|
+
|
10
|
+
if TYPE_CHECKING:
|
11
|
+
from ._patch import * # pylint: disable=unused-wildcard-import
|
12
|
+
|
13
|
+
from ._client import Dirac # type: ignore
|
8
14
|
|
9
15
|
try:
|
10
16
|
from ._patch import __all__ as _patch_all
|
11
|
-
from ._patch import *
|
12
|
-
except
|
17
|
+
from ._patch import *
|
18
|
+
except ImportError:
|
13
19
|
_patch_all = []
|
14
20
|
from ._patch import patch_sdk as _patch_sdk
|
15
21
|
|
16
22
|
__all__ = [
|
17
23
|
"Dirac",
|
18
24
|
]
|
19
|
-
__all__.extend([p for p in _patch_all if p not in __all__])
|
25
|
+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
20
26
|
|
21
27
|
_patch_sdk()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
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.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -235,7 +235,7 @@ except ImportError: # Python 2.7
|
|
235
235
|
:param datetime.timedelta offset: offset in timedelta format
|
236
236
|
"""
|
237
237
|
|
238
|
-
def __init__(self, offset):
|
238
|
+
def __init__(self, offset) -> None:
|
239
239
|
self.__offset = offset
|
240
240
|
|
241
241
|
def utcoffset(self, dt):
|
@@ -320,7 +320,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
|
|
320
320
|
return ET.Element(tag)
|
321
321
|
|
322
322
|
|
323
|
-
class Model
|
323
|
+
class Model:
|
324
324
|
"""Mixin for all client request body/response body models to support
|
325
325
|
serialization and deserialization.
|
326
326
|
"""
|
@@ -537,7 +537,6 @@ class Model(object):
|
|
537
537
|
def _classify(cls, response, objects):
|
538
538
|
"""Check the class _subtype_map for any child classes.
|
539
539
|
We want to ignore any inherited _subtype_maps.
|
540
|
-
Remove the polymorphic key from the initial data.
|
541
540
|
|
542
541
|
:param dict response: The initial data
|
543
542
|
:param dict objects: The class objects
|
@@ -549,9 +548,9 @@ class Model(object):
|
|
549
548
|
|
550
549
|
if not isinstance(response, ET.Element):
|
551
550
|
rest_api_response_key = cls._get_rest_key_parts(subtype_key)[-1]
|
552
|
-
subtype_value = response.
|
551
|
+
subtype_value = response.get(
|
553
552
|
rest_api_response_key, None
|
554
|
-
) or response.
|
553
|
+
) or response.get(subtype_key, None)
|
555
554
|
else:
|
556
555
|
subtype_value = xml_key_extractor(
|
557
556
|
subtype_key, cls._attribute_map[subtype_key], response
|
@@ -602,7 +601,7 @@ def _decode_attribute_map_key(key):
|
|
602
601
|
return key.replace("\\.", ".")
|
603
602
|
|
604
603
|
|
605
|
-
class Serializer
|
604
|
+
class Serializer: # pylint: disable=too-many-public-methods
|
606
605
|
"""Request object model serializer."""
|
607
606
|
|
608
607
|
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
|
@@ -637,7 +636,7 @@ class Serializer(object): # pylint: disable=too-many-public-methods
|
|
637
636
|
"multiple": lambda x, y: x % y != 0,
|
638
637
|
}
|
639
638
|
|
640
|
-
def __init__(self, classes: Optional[Mapping[str, type]] = None):
|
639
|
+
def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
|
641
640
|
self.serialize_type = {
|
642
641
|
"iso-8601": Serializer.serialize_iso,
|
643
642
|
"rfc-1123": Serializer.serialize_rfc,
|
@@ -1537,7 +1536,7 @@ def xml_key_extractor(
|
|
1537
1536
|
return children[0]
|
1538
1537
|
|
1539
1538
|
|
1540
|
-
class Deserializer
|
1539
|
+
class Deserializer:
|
1541
1540
|
"""Response object model deserializer.
|
1542
1541
|
|
1543
1542
|
:param dict classes: Class type dictionary for deserializing complex types.
|
@@ -1550,7 +1549,7 @@ class Deserializer(object):
|
|
1550
1549
|
r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?"
|
1551
1550
|
)
|
1552
1551
|
|
1553
|
-
def __init__(self, classes: Optional[Mapping[str, type]] = None):
|
1552
|
+
def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
|
1554
1553
|
self.deserialize_type = {
|
1555
1554
|
"iso-8601": Deserializer.deserialize_iso,
|
1556
1555
|
"rfc-1123": Deserializer.deserialize_rfc,
|
@@ -1803,13 +1802,13 @@ class Deserializer(object):
|
|
1803
1802
|
try:
|
1804
1803
|
readonly = [
|
1805
1804
|
k
|
1806
|
-
for k, v in response._validation.items()
|
1807
|
-
if v.get("readonly")
|
1805
|
+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
|
1806
|
+
if v.get("readonly")
|
1808
1807
|
]
|
1809
1808
|
const = [
|
1810
1809
|
k
|
1811
|
-
for k, v in response._validation.items()
|
1812
|
-
if v.get("constant")
|
1810
|
+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
|
1811
|
+
if v.get("constant")
|
1813
1812
|
]
|
1814
1813
|
kwargs = {
|
1815
1814
|
k: v
|
@@ -1820,7 +1819,7 @@ class Deserializer(object):
|
|
1820
1819
|
for attr in readonly:
|
1821
1820
|
setattr(response_obj, attr, attrs.get(attr))
|
1822
1821
|
if additional_properties:
|
1823
|
-
response_obj.additional_properties = additional_properties
|
1822
|
+
response_obj.additional_properties = additional_properties # type: ignore
|
1824
1823
|
return response_obj
|
1825
1824
|
except TypeError as err:
|
1826
1825
|
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
5
5
|
|
@@ -1,21 +1,27 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
|
+
# pylint: disable=wrong-import-position
|
6
7
|
|
7
|
-
from
|
8
|
+
from typing import TYPE_CHECKING
|
9
|
+
|
10
|
+
if TYPE_CHECKING:
|
11
|
+
from ._patch import * # pylint: disable=unused-wildcard-import
|
12
|
+
|
13
|
+
from ._client import Dirac # type: ignore
|
8
14
|
|
9
15
|
try:
|
10
16
|
from ._patch import __all__ as _patch_all
|
11
|
-
from ._patch import *
|
12
|
-
except
|
17
|
+
from ._patch import *
|
18
|
+
except ImportError:
|
13
19
|
_patch_all = []
|
14
20
|
from ._patch import patch_sdk as _patch_sdk
|
15
21
|
|
16
22
|
__all__ = [
|
17
23
|
"Dirac",
|
18
24
|
]
|
19
|
-
__all__.extend([p for p in _patch_all if p not in __all__])
|
25
|
+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
20
26
|
|
21
27
|
_patch_sdk()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
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.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
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.10.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
5
5
|
|
@@ -1,16 +1,22 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/python@6.27.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
|
+
# pylint: disable=wrong-import-position
|
6
7
|
|
7
|
-
from
|
8
|
-
|
9
|
-
|
10
|
-
from .
|
8
|
+
from typing import TYPE_CHECKING
|
9
|
+
|
10
|
+
if TYPE_CHECKING:
|
11
|
+
from ._patch import * # pylint: disable=unused-wildcard-import
|
12
|
+
|
13
|
+
from ._operations import WellKnownOperations # type: ignore
|
14
|
+
from ._operations import AuthOperations # type: ignore
|
15
|
+
from ._operations import ConfigOperations # type: ignore
|
16
|
+
from ._operations import JobsOperations # type: ignore
|
11
17
|
|
12
18
|
from ._patch import __all__ as _patch_all
|
13
|
-
from ._patch import *
|
19
|
+
from ._patch import *
|
14
20
|
from ._patch import patch_sdk as _patch_sdk
|
15
21
|
|
16
22
|
__all__ = [
|
@@ -19,5 +25,5 @@ __all__ = [
|
|
19
25
|
"ConfigOperations",
|
20
26
|
"JobsOperations",
|
21
27
|
]
|
22
|
-
__all__.extend([p for p in _patch_all if p not in __all__])
|
28
|
+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
23
29
|
_patch_sdk()
|