|
10 | 10 | from io import IOBase |
11 | 11 | import json |
12 | 12 | import sys |
13 | | -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, overload |
| 13 | +from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload |
14 | 14 | import urllib.parse |
15 | 15 |
|
16 | 16 | from azure.core import MatchConditions |
@@ -1286,7 +1286,7 @@ def get_distribution_policy(self, distribution_policy_id: str, **kwargs: Any) -> |
1286 | 1286 | return deserialized # type: ignore |
1287 | 1287 |
|
1288 | 1288 | @distributed_trace |
1289 | | - def list_distribution_policies(self, **kwargs: Any) -> Iterable["_models.DistributionPolicy"]: |
| 1289 | + def list_distribution_policies(self, **kwargs: Any) -> ItemPaged["_models.DistributionPolicy"]: |
1290 | 1290 | """Retrieves existing distribution policies. |
1291 | 1291 |
|
1292 | 1292 | Retrieves existing distribution policies. |
@@ -1383,8 +1383,6 @@ def delete_distribution_policy( # pylint: disable=inconsistent-return-statement |
1383 | 1383 |
|
1384 | 1384 | :param distribution_policy_id: The unique identifier of the policy. Required. |
1385 | 1385 | :type distribution_policy_id: str |
1386 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
1387 | | - will have to context manage the returned stream. |
1388 | 1386 | :return: None |
1389 | 1387 | :rtype: None |
1390 | 1388 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -1725,7 +1723,7 @@ def get_classification_policy(self, classification_policy_id: str, **kwargs: Any |
1725 | 1723 | return deserialized # type: ignore |
1726 | 1724 |
|
1727 | 1725 | @distributed_trace |
1728 | | - def list_classification_policies(self, **kwargs: Any) -> Iterable["_models.ClassificationPolicy"]: |
| 1726 | + def list_classification_policies(self, **kwargs: Any) -> ItemPaged["_models.ClassificationPolicy"]: |
1729 | 1727 | """Retrieves existing classification policies. |
1730 | 1728 |
|
1731 | 1729 | Retrieves existing classification policies. |
@@ -1823,8 +1821,6 @@ def delete_classification_policy( # pylint: disable=inconsistent-return-stateme |
1823 | 1821 |
|
1824 | 1822 | :param classification_policy_id: Unique identifier of this policy. Required. |
1825 | 1823 | :type classification_policy_id: str |
1826 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
1827 | | - will have to context manage the returned stream. |
1828 | 1824 | :return: None |
1829 | 1825 | :rtype: None |
1830 | 1826 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -2165,7 +2161,7 @@ def get_exception_policy(self, exception_policy_id: str, **kwargs: Any) -> _mode |
2165 | 2161 | return deserialized # type: ignore |
2166 | 2162 |
|
2167 | 2163 | @distributed_trace |
2168 | | - def list_exception_policies(self, **kwargs: Any) -> Iterable["_models.ExceptionPolicy"]: |
| 2164 | + def list_exception_policies(self, **kwargs: Any) -> ItemPaged["_models.ExceptionPolicy"]: |
2169 | 2165 | """Retrieves existing exception policies. |
2170 | 2166 |
|
2171 | 2167 | Retrieves existing exception policies. |
@@ -2262,8 +2258,6 @@ def delete_exception_policy( # pylint: disable=inconsistent-return-statements |
2262 | 2258 |
|
2263 | 2259 | :param exception_policy_id: The Id of the exception policy. Required. |
2264 | 2260 | :type exception_policy_id: str |
2265 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
2266 | | - will have to context manage the returned stream. |
2267 | 2261 | :return: None |
2268 | 2262 | :rtype: None |
2269 | 2263 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -2604,7 +2598,7 @@ def get_queue(self, queue_id: str, **kwargs: Any) -> _models.RouterQueue: |
2604 | 2598 | return deserialized # type: ignore |
2605 | 2599 |
|
2606 | 2600 | @distributed_trace |
2607 | | - def list_queues(self, **kwargs: Any) -> Iterable["_models.RouterQueue"]: |
| 2601 | + def list_queues(self, **kwargs: Any) -> ItemPaged["_models.RouterQueue"]: |
2608 | 2602 | """Retrieves existing queues. |
2609 | 2603 |
|
2610 | 2604 | Retrieves existing queues. |
@@ -2699,8 +2693,6 @@ def delete_queue(self, queue_id: str, **kwargs: Any) -> None: # pylint: disable |
2699 | 2693 |
|
2700 | 2694 | :param queue_id: The Id of this queue. Required. |
2701 | 2695 | :type queue_id: str |
2702 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
2703 | | - will have to context manage the returned stream. |
2704 | 2696 | :return: None |
2705 | 2697 | :rtype: None |
2706 | 2698 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -3050,8 +3042,6 @@ def delete_job(self, job_id: str, **kwargs: Any) -> None: # pylint: disable=inc |
3050 | 3042 |
|
3051 | 3043 | :param job_id: The id of the job. Required. |
3052 | 3044 | :type job_id: str |
3053 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
3054 | | - will have to context manage the returned stream. |
3055 | 3045 | :return: None |
3056 | 3046 | :rtype: None |
3057 | 3047 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -3578,7 +3568,7 @@ def list_jobs( |
3578 | 3568 | scheduled_before: Optional[datetime.datetime] = None, |
3579 | 3569 | scheduled_after: Optional[datetime.datetime] = None, |
3580 | 3570 | **kwargs: Any |
3581 | | - ) -> Iterable["_models.RouterJob"]: |
| 3571 | + ) -> ItemPaged["_models.RouterJob"]: |
3582 | 3572 | """Retrieves list of jobs based on filter parameters. |
3583 | 3573 |
|
3584 | 3574 | Retrieves list of jobs based on filter parameters. |
@@ -4489,8 +4479,6 @@ def delete_worker(self, worker_id: str, **kwargs: Any) -> None: # pylint: disab |
4489 | 4479 |
|
4490 | 4480 | :param worker_id: Id of the worker. Required. |
4491 | 4481 | :type worker_id: str |
4492 | | - :keyword bool stream: Whether to stream the response of this operation. Defaults to False. You |
4493 | | - will have to context manage the returned stream. |
4494 | 4482 | :return: None |
4495 | 4483 | :rtype: None |
4496 | 4484 | :raises ~azure.core.exceptions.HttpResponseError: |
@@ -4544,7 +4532,7 @@ def list_workers( |
4544 | 4532 | queue_id: Optional[str] = None, |
4545 | 4533 | has_capacity: Optional[bool] = None, |
4546 | 4534 | **kwargs: Any |
4547 | | - ) -> Iterable["_models.RouterWorker"]: |
| 4535 | + ) -> ItemPaged["_models.RouterWorker"]: |
4548 | 4536 | """Retrieves existing workers. |
4549 | 4537 |
|
4550 | 4538 | Retrieves existing workers. |
|
0 commit comments