Skip to content

Commit c91fd0f

Browse files
author
SDKAuto
committed
CodeGen from PR 3559 in test-repo-billy/azure-rest-api-specs
Merge 060e30d7a05928d0442267354fe4ccf0740e37ef into a1ece0d8092cbabd104c6a090519eb102db0c350
1 parent b2b0c35 commit c91fd0f

37 files changed

+2296
-14034
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "9458b84485608b75bb0aa3057a951e41102c6f40",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
4+
"typespec_src": "specification/communication/Communication.JobRouter",
5+
"@azure-tools/typespec-python": "0.31.1"
6+
}

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._patch import JobRouterAdministrationClient
10-
from ._patch import JobRouterClient
9+
from ._client import JobRouterAdministrationClient
10+
from ._client import JobRouterClient
1111
from ._version import VERSION
1212

1313
__version__ = VERSION

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_api_versions.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any
11+
from typing_extensions import Self
1112

1213
from azure.core import PipelineClient
1314
from azure.core.pipeline import policies
@@ -79,7 +80,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
7980

8081
request_copy = deepcopy(request)
8182
path_format_arguments = {
82-
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True),
83+
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str"),
8384
}
8485

8586
request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)
@@ -88,7 +89,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
8889
def close(self) -> None:
8990
self._client.close()
9091

91-
def __enter__(self) -> "JobRouterAdministrationClient":
92+
def __enter__(self) -> Self:
9293
self._client.__enter__()
9394
return self
9495

@@ -155,7 +156,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
155156

156157
request_copy = deepcopy(request)
157158
path_format_arguments = {
158-
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True),
159+
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str"),
159160
}
160161

161162
request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)
@@ -164,7 +165,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
164165
def close(self) -> None:
165166
self._client.close()
166167

167-
def __enter__(self) -> "JobRouterClient":
168+
def __enter__(self) -> Self:
168169
self._client.__enter__()
169170
return self
170171

0 commit comments

Comments
 (0)