Skip to content

Commit

Permalink
CodeGen from PR 26749 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fix service name (Azure#26749)
  • Loading branch information
SDKAuto committed Nov 17, 2023
1 parent 1559493 commit 2b1d348
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
6 changes: 6 additions & 0 deletions sdk/communication/azure-communication-jobrouter/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "64248e9c2b8ef5e65ea879475c569a060927822d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/communication/Communication.JobRouter",
"@azure-tools/typespec-python": "0.15.13"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._patch import JobRouterAdministrationClient
from ._patch import JobRouterClient
from ._client import JobRouterAdministrationClient
from ._client import JobRouterClient
from ._version import VERSION

__version__ = VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._patch import JobRouterAdministrationClientOperationsMixin
from ._patch import JobRouterClientOperationsMixin
from ._operations import JobRouterAdministrationClientOperationsMixin
from ._operations import JobRouterClientOperationsMixin

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from io import IOBase
import json
import sys
from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload
from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, overload
import urllib.parse

from azure.core import MatchConditions
Expand Down Expand Up @@ -1286,7 +1286,7 @@ def get_distribution_policy(self, distribution_policy_id: str, **kwargs: Any) ->
return deserialized # type: ignore

@distributed_trace
def list_distribution_policies(self, **kwargs: Any) -> ItemPaged["_models.DistributionPolicy"]:
def list_distribution_policies(self, **kwargs: Any) -> Iterable["_models.DistributionPolicy"]:
"""Retrieves existing distribution policies.
Retrieves existing distribution policies.
Expand Down Expand Up @@ -1723,7 +1723,7 @@ def get_classification_policy(self, classification_policy_id: str, **kwargs: Any
return deserialized # type: ignore

@distributed_trace
def list_classification_policies(self, **kwargs: Any) -> ItemPaged["_models.ClassificationPolicy"]:
def list_classification_policies(self, **kwargs: Any) -> Iterable["_models.ClassificationPolicy"]:
"""Retrieves existing classification policies.
Retrieves existing classification policies.
Expand Down Expand Up @@ -2161,7 +2161,7 @@ def get_exception_policy(self, exception_policy_id: str, **kwargs: Any) -> _mode
return deserialized # type: ignore

@distributed_trace
def list_exception_policies(self, **kwargs: Any) -> ItemPaged["_models.ExceptionPolicy"]:
def list_exception_policies(self, **kwargs: Any) -> Iterable["_models.ExceptionPolicy"]:
"""Retrieves existing exception policies.
Retrieves existing exception policies.
Expand Down Expand Up @@ -2598,7 +2598,7 @@ def get_queue(self, queue_id: str, **kwargs: Any) -> _models.RouterQueue:
return deserialized # type: ignore

@distributed_trace
def list_queues(self, **kwargs: Any) -> ItemPaged["_models.RouterQueue"]:
def list_queues(self, **kwargs: Any) -> Iterable["_models.RouterQueue"]:
"""Retrieves existing queues.
Retrieves existing queues.
Expand Down Expand Up @@ -3568,7 +3568,7 @@ def list_jobs(
scheduled_before: Optional[datetime.datetime] = None,
scheduled_after: Optional[datetime.datetime] = None,
**kwargs: Any
) -> ItemPaged["_models.RouterJob"]:
) -> Iterable["_models.RouterJob"]:
"""Retrieves list of jobs based on filter parameters.
Retrieves list of jobs based on filter parameters.
Expand Down Expand Up @@ -4532,7 +4532,7 @@ def list_workers(
queue_id: Optional[str] = None,
has_capacity: Optional[bool] = None,
**kwargs: Any
) -> ItemPaged["_models.RouterWorker"]:
) -> Iterable["_models.RouterWorker"]:
"""Retrieves existing workers.
Retrieves existing workers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._patch import JobRouterAdministrationClient
from ._patch import JobRouterClient
from ._client import JobRouterAdministrationClient
from ._client import JobRouterClient

try:
from ._patch import __all__ as _patch_all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._patch import JobRouterAdministrationClientOperationsMixin
from ._patch import JobRouterClientOperationsMixin
from ._operations import JobRouterAdministrationClientOperationsMixin
from ._operations import JobRouterClientOperationsMixin

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from io import IOBase
import json
import sys
from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload
from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, overload
import urllib.parse

from azure.core import MatchConditions
Expand Down Expand Up @@ -377,7 +377,7 @@ async def get_distribution_policy(self, distribution_policy_id: str, **kwargs: A
return deserialized # type: ignore

@distributed_trace
def list_distribution_policies(self, **kwargs: Any) -> AsyncItemPaged["_models.DistributionPolicy"]:
def list_distribution_policies(self, **kwargs: Any) -> AsyncIterable["_models.DistributionPolicy"]:
"""Retrieves existing distribution policies.
Retrieves existing distribution policies.
Expand Down Expand Up @@ -817,7 +817,7 @@ async def get_classification_policy(
return deserialized # type: ignore

@distributed_trace
def list_classification_policies(self, **kwargs: Any) -> AsyncItemPaged["_models.ClassificationPolicy"]:
def list_classification_policies(self, **kwargs: Any) -> AsyncIterable["_models.ClassificationPolicy"]:
"""Retrieves existing classification policies.
Retrieves existing classification policies.
Expand Down Expand Up @@ -1255,7 +1255,7 @@ async def get_exception_policy(self, exception_policy_id: str, **kwargs: Any) ->
return deserialized # type: ignore

@distributed_trace
def list_exception_policies(self, **kwargs: Any) -> AsyncItemPaged["_models.ExceptionPolicy"]:
def list_exception_policies(self, **kwargs: Any) -> AsyncIterable["_models.ExceptionPolicy"]:
"""Retrieves existing exception policies.
Retrieves existing exception policies.
Expand Down Expand Up @@ -1693,7 +1693,7 @@ async def get_queue(self, queue_id: str, **kwargs: Any) -> _models.RouterQueue:
return deserialized # type: ignore

@distributed_trace
def list_queues(self, **kwargs: Any) -> AsyncItemPaged["_models.RouterQueue"]:
def list_queues(self, **kwargs: Any) -> AsyncIterable["_models.RouterQueue"]:
"""Retrieves existing queues.
Retrieves existing queues.
Expand Down Expand Up @@ -2666,7 +2666,7 @@ def list_jobs(
scheduled_before: Optional[datetime.datetime] = None,
scheduled_after: Optional[datetime.datetime] = None,
**kwargs: Any
) -> AsyncItemPaged["_models.RouterJob"]:
) -> AsyncIterable["_models.RouterJob"]:
"""Retrieves list of jobs based on filter parameters.
Retrieves list of jobs based on filter parameters.
Expand Down Expand Up @@ -3633,7 +3633,7 @@ def list_workers(
queue_id: Optional[str] = None,
has_capacity: Optional[bool] = None,
**kwargs: Any
) -> AsyncItemPaged["_models.RouterWorker"]:
) -> AsyncIterable["_models.RouterWorker"]:
"""Retrieves existing workers.
Retrieves existing workers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding=utf-8
# pylint: disable=too-many-lines,anomalous-backslash-in-string,name-too-long
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
Expand Down Expand Up @@ -98,7 +98,7 @@ class DistributionMode(_model_base.Model):
values are: "bestWorker", "longestIdle", and "roundRobin".
:vartype kind: str or ~azure.communication.jobrouter.models.DistributionModeKind
"""
__mapping__: Dict[str, _model_base.Model] = {}

min_concurrent_offers: Optional[int] = rest_field(name="minConcurrentOffers")
"""Governs the minimum desired number of active concurrent offers a job can have."""
max_concurrent_offers: Optional[int] = rest_field(name="maxConcurrentOffers")
Expand Down Expand Up @@ -213,7 +213,6 @@ class ExceptionAction(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.ExceptionActionKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
id: Optional[str] = rest_field()
"""Unique Id of the exception action."""
kind: Literal[None] = rest_discriminator(name="kind")
Expand Down Expand Up @@ -497,7 +496,6 @@ class QueueSelectorAttachment(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.QueueSelectorAttachmentKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
kind: Literal[None] = rest_discriminator(name="kind")
"""The type discriminator describing a sub-type of QueueSelectorAttachment. Required. Known values
are: \"conditional\", \"passThrough\", \"ruleEngine\", \"static\", and \"weightedAllocation\"."""
Expand Down Expand Up @@ -568,7 +566,6 @@ class WorkerSelectorAttachment(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.WorkerSelectorAttachmentKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
kind: Literal[None] = rest_discriminator(name="kind")
"""The type discriminator describing a sub-type of WorkerSelectorAttachment. Required. Known
values are: \"conditional\", \"passThrough\", \"ruleEngine\", \"static\", and
Expand Down Expand Up @@ -685,7 +682,6 @@ class RouterRule(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.RouterRuleKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
kind: Literal[None] = rest_discriminator(name="kind")
"""The type discriminator describing a sub-type of RouterRule. Required. Known values are:
\"directMap\", \"expression\", \"function\", \"static\", and \"webhook\"."""
Expand Down Expand Up @@ -866,7 +862,6 @@ class ExceptionTrigger(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.ExceptionTriggerKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
kind: Literal[None] = rest_discriminator(name="kind")
"""The type discriminator describing a sub-type of ExceptionTrigger. Required. Known values are:
\"queueLength\" and \"waitTime\"."""
Expand Down Expand Up @@ -1024,7 +1019,6 @@ class JobMatchingMode(_model_base.Model):
:vartype kind: str or ~azure.communication.jobrouter.models.JobMatchingModeKind
"""

__mapping__: Dict[str, _model_base.Model] = {}
kind: Literal[None] = rest_discriminator(name="kind")
"""The type discriminator describing a sub-type of JobMatchingMode. Required. Known values are:
\"queueAndMatch\", \"scheduleAndSuspend\", and \"suspend\"."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repo: Azure/azure-rest-api-specs
additionalDirectories: []
directory: specification/communication/Communication.JobRouter
commit: 2d044b8a317aff46d45080f5a797ac376955f648
additionalDirectories: []
commit: 64248e9c2b8ef5e65ea879475c569a060927822d

0 comments on commit 2b1d348

Please sign in to comment.