88"""
99import sys
1010import datetime
11- from typing import List , Any , Optional , Dict , Union , overload , IO
11+ from typing import List , Any , Optional , Dict , Union , overload , IO , Literal
1212
1313from azure .core import MatchConditions
1414from azure .core .tracing .decorator import distributed_trace
2020 JobRouterClientOperationsMixin as JobRouterClientOperationsMixinGenerated ,
2121 JobRouterAdministrationClientOperationsMixin as JobRouterAdministrationClientOperationsMixinGenerated ,
2222)
23- from ..._model_base import _deserialize_datetime as _convert_str_to_datetime # pylint:disable=protected-access
24-
25- if sys .version_info >= (3 , 8 ):
26- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
27- else :
28- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
23+ from ..._model_base import _deserialize_datetime as _convert_str_to_datetime
2924
3025if sys .version_info >= (3 , 9 ):
3126 from collections .abc import MutableMapping
3227else :
33- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
28+ from typing import MutableMapping # type: ignore
29+
30+
3431JSON = MutableMapping [str , Any ] # pylint: disable=unsubscriptable-object
3532
3633
3734class JobRouterAdministrationClientOperationsMixin (
3835 JobRouterAdministrationClientOperationsMixinGenerated
39- ): # pylint:disable=too-many-lines,line-too-long,name-too-long,arguments-differ,unused-argument
36+ ): # pylint:disable=too-many-lines,line-too-long,name-too-long,arguments-differ
4037 # region ExceptionPolicy
4138 @overload
42- async def upsert_exception_policy ( # pylint: disable=arguments-differ,unused-argument
39+ async def upsert_exception_policy ( # pylint: disable=arguments-differ
4340 self ,
4441 exception_policy_id : str ,
4542 * ,
@@ -53,26 +50,19 @@ async def upsert_exception_policy( # pylint: disable=arguments-differ,unused-ar
5350 """Update an exception policy.
5451
5552 :param str exception_policy_id: Id of the exception policy.
56-
57- :keyword exception_rules: (Optional) A collection of exception rules on the exception
58- policy.
53+ :keyword exception_rules: (Optional) A collection of exception rules on the exception policy.
5954 :paramtype exception_rules: Optional[Dict[str, ~azure.communication.jobrouter.models.ExceptionRule]]
60-
6155 :keyword Optional[str] name: The name of this policy.
62-
6356 :keyword if_unmodified_since: The request should only proceed if the entity was not modified
6457 after this time. Default value is None.
6558 :paramtype if_unmodified_since: ~datetime.datetime
66- :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is
67- None.
59+ :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None.
6860 :paramtype etag: str
6961 :keyword match_condition: The match condition to use upon the etag. Default value is None.
7062 :paramtype match_condition: ~azure.core.MatchConditions
71-
7263 :return: Instance of ExceptionPolicy
7364 :rtype: ~azure.communication.jobrouter.models.ExceptionPolicy
74- :raises: ~azure.core.exceptions.HttpResponseError, ValueError
75-
65+ :raises: ~azure.core.exceptions.HttpResponseError
7666
7767 .. admonition:: Example:
7868
@@ -148,8 +138,7 @@ async def upsert_exception_policy(
148138 :keyword if_unmodified_since: The request should only proceed if the entity was not modified
149139 after this time. Default value is None.
150140 :paramtype if_unmodified_since: ~datetime.datetime
151- :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is
152- None.
141+ :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None.
153142 :paramtype etag: str
154143 :keyword match_condition: The match condition to use upon the etag. Default value is None.
155144 :paramtype match_condition: ~azure.core.MatchConditions
@@ -198,7 +187,7 @@ async def upsert_exception_policy(
198187 :raises ~azure.core.exceptions.HttpResponseError:
199188 """
200189
201- async def upsert_exception_policy (
190+ async def upsert_exception_policy ( # pylint: disable=docstring-missing-param
202191 self , exception_policy_id : str , * args : Union [_models .ExceptionPolicy , JSON , IO [bytes ]], ** kwargs : Any
203192 ) -> _models .ExceptionPolicy :
204193 """Update an exception policy.
@@ -297,7 +286,7 @@ def list_exception_policies(
297286
298287 # region DistributionPolicy
299288 @overload
300- async def upsert_distribution_policy ( # pylint: disable=arguments-differ,unused-argument
289+ async def upsert_distribution_policy ( # pylint: disable=arguments-differ
301290 self ,
302291 distribution_policy_id : str ,
303292 * ,
@@ -460,7 +449,7 @@ async def upsert_distribution_policy(
460449 :raises ~azure.core.exceptions.HttpResponseError:
461450 """
462451
463- async def upsert_distribution_policy (
452+ async def upsert_distribution_policy ( # pylint: disable=docstring-missing-param
464453 self , distribution_policy_id : str , * args : Union [_models .DistributionPolicy , JSON , IO [bytes ]], ** kwargs : Any
465454 ) -> _models .DistributionPolicy :
466455 """Update a distribution policy.
@@ -565,7 +554,7 @@ def list_distribution_policies(
565554
566555 # region Queue
567556 @overload
568- async def upsert_queue ( # pylint: disable=arguments-differ,unused-argument
557+ async def upsert_queue ( # pylint: disable=arguments-differ
569558 self ,
570559 queue_id : str ,
571560 * ,
@@ -731,7 +720,7 @@ async def upsert_queue(
731720 :raises ~azure.core.exceptions.HttpResponseError:
732721 """
733722
734- async def upsert_queue (
723+ async def upsert_queue ( # pylint: disable=docstring-missing-param
735724 self , queue_id : str , * args : Union [_models .RouterQueue , JSON , IO [bytes ]], ** kwargs : Any
736725 ) -> _models .RouterQueue :
737726 """Update a job queue
@@ -838,7 +827,7 @@ def list_queues(
838827
839828 # region ClassificationPolicy
840829 @overload
841- async def upsert_classification_policy ( # pylint: disable=arguments-differ,unused-argument
830+ async def upsert_classification_policy ( # pylint: disable=arguments-differ
842831 self ,
843832 classification_policy_id : str ,
844833 * ,
@@ -1046,7 +1035,7 @@ async def upsert_classification_policy(
10461035 :raises ~azure.core.exceptions.HttpResponseError:
10471036 """
10481037
1049- async def upsert_classification_policy (
1038+ async def upsert_classification_policy ( # pylint: disable=docstring-missing-param
10501039 self , classification_policy_id : str , * args : Union [_models .ClassificationPolicy , JSON , IO [bytes ]], ** kwargs : Any
10511040 ) -> _models .ClassificationPolicy :
10521041 """Update a classification policy
@@ -1174,7 +1163,7 @@ def list_classification_policies(
11741163class JobRouterClientOperationsMixin (JobRouterClientOperationsMixinGenerated ):
11751164 # region Worker
11761165 @overload
1177- async def upsert_worker ( # pylint: disable=arguments-differ,unused-argument
1166+ async def upsert_worker ( # pylint: disable=arguments-differ
11781167 self ,
11791168 worker_id : str ,
11801169 * ,
@@ -1384,7 +1373,7 @@ async def upsert_worker(
13841373 :raises ~azure.core.exceptions.HttpResponseError:
13851374 """
13861375
1387- async def upsert_worker (
1376+ async def upsert_worker ( # pylint: disable=docstring-missing-param
13881377 self , worker_id : str , * args : Union [_models .RouterWorker , JSON , IO [bytes ]], ** kwargs : Any
13891378 ) -> _models .RouterWorker :
13901379 """Update a router worker.
@@ -1554,7 +1543,7 @@ def list_workers(
15541543
15551544 # region Job
15561545 @overload
1557- async def upsert_job ( # pylint: disable=arguments-differ,unused-argument
1546+ async def upsert_job ( # pylint: disable=arguments-differ
15581547 self ,
15591548 job_id : str ,
15601549 * ,
@@ -1752,7 +1741,7 @@ async def upsert_job(
17521741 :raises ~azure.core.exceptions.HttpResponseError:
17531742 """
17541743
1755- async def upsert_job (
1744+ async def upsert_job ( # pylint: disable=docstring-missing-param
17561745 self , job_id : str , * args : Union [_models .RouterJob , JSON , IO [bytes ]], ** kwargs : Any
17571746 ) -> _models .RouterJob :
17581747 """Update a job.
0 commit comments