diracx-client 0.0.1a20__py3-none-any.whl → 0.0.1a21__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,20 @@
1
1
  # coding=utf-8
2
2
  # --------------------------------------------------------------------------
3
- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.26.0)
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 ._client import Dirac
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 * # pylint: disable=unused-wildcard-import
17
+ from ._patch import *
12
18
  except ImportError:
13
19
  _patch_all = []
14
20
  from ._patch import patch_sdk as _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.2, generator: @autorest/python@6.26.0)
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.2, generator: @autorest/python@6.26.0)
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,3 +1,4 @@
1
+ # pylint: disable=too-many-lines
1
2
  # --------------------------------------------------------------------------
2
3
  #
3
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -319,7 +320,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
319
320
  return ET.Element(tag)
320
321
 
321
322
 
322
- class Model(object):
323
+ class Model:
323
324
  """Mixin for all client request body/response body models to support
324
325
  serialization and deserialization.
325
326
  """
@@ -536,7 +537,6 @@ class Model(object):
536
537
  def _classify(cls, response, objects):
537
538
  """Check the class _subtype_map for any child classes.
538
539
  We want to ignore any inherited _subtype_maps.
539
- Remove the polymorphic key from the initial data.
540
540
 
541
541
  :param dict response: The initial data
542
542
  :param dict objects: The class objects
@@ -548,9 +548,9 @@ class Model(object):
548
548
 
549
549
  if not isinstance(response, ET.Element):
550
550
  rest_api_response_key = cls._get_rest_key_parts(subtype_key)[-1]
551
- subtype_value = response.pop(
551
+ subtype_value = response.get(
552
552
  rest_api_response_key, None
553
- ) or response.pop(subtype_key, None)
553
+ ) or response.get(subtype_key, None)
554
554
  else:
555
555
  subtype_value = xml_key_extractor(
556
556
  subtype_key, cls._attribute_map[subtype_key], response
@@ -601,7 +601,7 @@ def _decode_attribute_map_key(key):
601
601
  return key.replace("\\.", ".")
602
602
 
603
603
 
604
- class Serializer(object): # pylint: disable=too-many-public-methods
604
+ class Serializer: # pylint: disable=too-many-public-methods
605
605
  """Request object model serializer."""
606
606
 
607
607
  basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1536,7 +1536,7 @@ def xml_key_extractor(
1536
1536
  return children[0]
1537
1537
 
1538
1538
 
1539
- class Deserializer(object):
1539
+ class Deserializer:
1540
1540
  """Response object model deserializer.
1541
1541
 
1542
1542
  :param dict classes: Class type dictionary for deserializing complex types.
@@ -1802,13 +1802,13 @@ class Deserializer(object):
1802
1802
  try:
1803
1803
  readonly = [
1804
1804
  k
1805
- for k, v in response._validation.items()
1806
- if v.get("readonly") # pylint: disable=protected-access
1805
+ for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1806
+ if v.get("readonly")
1807
1807
  ]
1808
1808
  const = [
1809
1809
  k
1810
- for k, v in response._validation.items()
1811
- if v.get("constant") # pylint: disable=protected-access
1810
+ for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1811
+ if v.get("constant")
1812
1812
  ]
1813
1813
  kwargs = {
1814
1814
  k: v
@@ -1819,7 +1819,7 @@ class Deserializer(object):
1819
1819
  for attr in readonly:
1820
1820
  setattr(response_obj, attr, attrs.get(attr))
1821
1821
  if additional_properties:
1822
- response_obj.additional_properties = additional_properties
1822
+ response_obj.additional_properties = additional_properties # type: ignore
1823
1823
  return response_obj
1824
1824
  except TypeError as err:
1825
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, generator: @autorest/python@6.26.0)
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,14 +1,20 @@
1
1
  # coding=utf-8
2
2
  # --------------------------------------------------------------------------
3
- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.26.0)
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 ._client import Dirac
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 * # pylint: disable=unused-wildcard-import
17
+ from ._patch import *
12
18
  except ImportError:
13
19
  _patch_all = []
14
20
  from ._patch import patch_sdk as _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.2, generator: @autorest/python@6.26.0)
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.2, generator: @autorest/python@6.26.0)
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, generator: @autorest/python@6.26.0)
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.2, generator: @autorest/python@6.26.0)
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 ._operations import WellKnownOperations
8
- from ._operations import AuthOperations
9
- from ._operations import ConfigOperations
10
- from ._operations import JobsOperations
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 * # pylint: disable=unused-wildcard-import
19
+ from ._patch import *
14
20
  from ._patch import patch_sdk as _patch_sdk
15
21
 
16
22
  __all__ = [