diracx-client 0.0.1a44__py3-none-any.whl → 0.0.1a46__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.
@@ -241,12 +241,12 @@ class DiracXPatchLoader(DiracXAliasLoader):
241
241
  def exec_module(self, module):
242
242
  """Import an autorest generated module with two layers of patches."""
243
243
  # Import the real module and set its __name__ to the alias. This will
244
- # then corrospond to the __init__.py file + the _patch.py file from
244
+ # then correspond to the __init__.py file + the _patch.py file from
245
245
  # plain DiracX. When calling self.original_loader.exec_module it will:
246
246
  # 1. Import the real module (e.g. aio/__init__.py)
247
247
  # 2. Import any submodules (e.g. _operations)
248
248
  # 3. Import the patch module from plain DiracX (e.g. _patch.py,
249
- # overriden by the DiracXPathFinder)
249
+ # overridden by the DiracXPathFinder)
250
250
  # 4. Replace the submodules module's objects with anything in ._patch.__all__
251
251
  super().exec_module(module)
252
252
 
@@ -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.34.1)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.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
@@ -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.34.1)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
4
4
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
5
  # --------------------------------------------------------------------------
6
6
 
@@ -15,12 +15,7 @@ from azure.core.rest import HttpRequest, HttpResponse
15
15
  from . import models as _models
16
16
  from ._configuration import DiracConfiguration
17
17
  from ._utils.serialization import Deserializer, Serializer
18
- from .operations import (
19
- AuthOperations,
20
- ConfigOperations,
21
- JobsOperations,
22
- WellKnownOperations,
23
- )
18
+ from .operations import AuthOperations, ConfigOperations, JobsOperations, WellKnownOperations
24
19
 
25
20
 
26
21
  class Dirac: # pylint: disable=client-accepts-api-version-keyword
@@ -57,39 +52,21 @@ class Dirac: # pylint: disable=client-accepts-api-version-keyword
57
52
  self._config.custom_hook_policy,
58
53
  self._config.logging_policy,
59
54
  policies.DistributedTracingPolicy(**kwargs),
60
- (
61
- policies.SensitiveHeaderCleanupPolicy(**kwargs)
62
- if self._config.redirect_policy
63
- else None
64
- ),
55
+ policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
65
56
  self._config.http_logging_policy,
66
57
  ]
67
- self._client: PipelineClient = PipelineClient(
68
- base_url=endpoint, policies=_policies, **kwargs
69
- )
58
+ self._client: PipelineClient = PipelineClient(base_url=endpoint, policies=_policies, **kwargs)
70
59
 
71
- client_models = {
72
- k: v for k, v in _models.__dict__.items() if isinstance(v, type)
73
- }
60
+ client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
74
61
  self._serialize = Serializer(client_models)
75
62
  self._deserialize = Deserializer(client_models)
76
63
  self._serialize.client_side_validation = False
77
- self.well_known = WellKnownOperations(
78
- self._client, self._config, self._serialize, self._deserialize
79
- )
80
- self.auth = AuthOperations(
81
- self._client, self._config, self._serialize, self._deserialize
82
- )
83
- self.config = ConfigOperations(
84
- self._client, self._config, self._serialize, self._deserialize
85
- )
86
- self.jobs = JobsOperations(
87
- self._client, self._config, self._serialize, self._deserialize
88
- )
89
-
90
- def send_request(
91
- self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
92
- ) -> HttpResponse:
64
+ self.well_known = WellKnownOperations(self._client, self._config, self._serialize, self._deserialize)
65
+ self.auth = AuthOperations(self._client, self._config, self._serialize, self._deserialize)
66
+ self.config = ConfigOperations(self._client, self._config, self._serialize, self._deserialize)
67
+ self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
68
+
69
+ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
93
70
  """Runs the network request through the client's chained policies.
94
71
 
95
72
  >>> from azure.core.rest import HttpRequest
@@ -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.34.1)
3
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
4
4
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
5
  # --------------------------------------------------------------------------
6
6
 
@@ -25,24 +25,12 @@ class DiracConfiguration: # pylint: disable=too-many-instance-attributes
25
25
  self._configure(**kwargs)
26
26
 
27
27
  def _configure(self, **kwargs: Any) -> None:
28
- self.user_agent_policy = kwargs.get(
29
- "user_agent_policy"
30
- ) or policies.UserAgentPolicy(**kwargs)
31
- self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(
32
- **kwargs
33
- )
28
+ self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
29
+ self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
34
30
  self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
35
- self.logging_policy = kwargs.get(
36
- "logging_policy"
37
- ) or policies.NetworkTraceLoggingPolicy(**kwargs)
38
- self.http_logging_policy = kwargs.get(
39
- "http_logging_policy"
40
- ) or policies.HttpLoggingPolicy(**kwargs)
41
- self.custom_hook_policy = kwargs.get(
42
- "custom_hook_policy"
43
- ) or policies.CustomHookPolicy(**kwargs)
44
- self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(
45
- **kwargs
46
- )
31
+ self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
32
+ self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs)
33
+ self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
34
+ self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
47
35
  self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
48
36
  self.authentication_policy = kwargs.get("authentication_policy")
@@ -1,4 +1,4 @@
1
1
  # --------------------------------------------------------------------------
2
- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
2
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
3
3
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  # --------------------------------------------------------------------------