Skip to content

Commit 0cd0e22

Browse files
authored
[webpubsub] regenerate with autorest in main to pass ci (Azure#23974)
1 parent 23f486b commit 0cd0e22

File tree

12 files changed

+527
-337
lines changed

12 files changed

+527
-337
lines changed

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/__init__.py

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

9-
from ._web_pub_sub_service_client import WebPubSubServiceClient
9+
from ._client import WebPubSubServiceClient
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
1313

14-
from ._patch import __all__ as _patch_all
15-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
1619
from ._patch import patch_sdk as _patch_sdk
1720

1821
__all__ = ["WebPubSubServiceClient"]

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/_operations/_operations.py

Lines changed: 346 additions & 268 deletions
Large diffs are not rendered by default.

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/_operations/_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.tracing.decorator import distributed_trace
1515
from ._operations import (
1616
WebPubSubServiceClientOperationsMixin as WebPubSubServiceClientOperationsMixinGenerated,
17-
JSONType,
17+
JSON,
1818
)
1919

2020

@@ -65,7 +65,7 @@ def get_token_by_key(endpoint: str, hub: str, key: str, **kwargs: Any) -> str:
6565

6666
class WebPubSubServiceClientOperationsMixin(WebPubSubServiceClientOperationsMixinGenerated):
6767
@distributed_trace
68-
def get_client_access_token(self, **kwargs: Any) -> JSONType:
68+
def get_client_access_token(self, **kwargs: Any) -> JSON:
6969
"""Build an authentication token.
7070
:keyword user_id: User Id.
7171
:paramtype user_id: str
@@ -75,7 +75,7 @@ def get_client_access_token(self, **kwargs: Any) -> JSONType:
7575
:paramtype minutes_to_expire: int
7676
:keyword dict[str, any] jwt_headers: Any headers you want to pass to jwt encoding.
7777
:returns: JSON response containing the web socket endpoint, the token and a url with the generated access token.
78-
:rtype: JSONType
78+
:rtype: JSON
7979
Example:
8080
>>> get_client_access_token()
8181
{

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from azure.core.pipeline.policies import SansIOHTTPPolicy, ProxyPolicy
3434
from azure.core.credentials import AzureKeyCredential
3535

36-
from ._web_pub_sub_service_client import WebPubSubServiceClient as WebPubSubServiceClientGenerated
36+
from ._client import WebPubSubServiceClient as WebPubSubServiceClientGenerated
3737
from ._operations._patch import _UTC_TZ
3838

3939

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/__init__.py

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

9-
from ._web_pub_sub_service_client import WebPubSubServiceClient
9+
from ._client import WebPubSubServiceClient
1010

11-
from ._patch import __all__ as _patch_all
12-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
11+
try:
12+
from ._patch import __all__ as _patch_all
13+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
14+
except ImportError:
15+
_patch_all = []
1316
from ._patch import patch_sdk as _patch_sdk
1417

1518
__all__ = ["WebPubSubServiceClient"]

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_operations/_operations.py

Lines changed: 159 additions & 53 deletions
Large diffs are not rendered by default.

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_operations/_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from azure.core.tracing.decorator_async import distributed_trace_async
1212
from ._operations import (
1313
WebPubSubServiceClientOperationsMixin as WebPubSubServiceClientOperationsMixinGenerated,
14-
JSONType,
14+
JSON,
1515
)
1616
from ..._operations._patch import get_token_by_key
1717

@@ -26,7 +26,7 @@ async def get_client_access_token( # pylint: disable=arguments-differ
2626
minutes_to_expire: Optional[int] = 60,
2727
jwt_headers: Dict[str, Any] = None,
2828
**kwargs: Any
29-
) -> JSONType:
29+
) -> JSON:
3030
"""Generate token for the client to connect Azure Web PubSub service.
3131
Generate token for the client to connect Azure Web PubSub service.
3232
:keyword user_id: User Id.
@@ -40,7 +40,7 @@ async def get_client_access_token( # pylint: disable=arguments-differ
4040
default value may result in unsupported behavior.
4141
:paramtype api_version: str
4242
:return: JSON object
43-
:rtype: JSONType
43+
:rtype: JSON
4444
:raises: ~azure.core.exceptions.HttpResponseError
4545
Example:
4646
.. code-block:: python

sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/aio/_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from azure.core.credentials import AzureKeyCredential
3030

3131
from .._patch import _parse_connection_string, WebPubSubServiceClientBase
32-
from ._web_pub_sub_service_client import WebPubSubServiceClient as WebPubSubServiceClientGenerated
32+
from ._client import WebPubSubServiceClient as WebPubSubServiceClientGenerated
3333

3434

3535
if TYPE_CHECKING:

0 commit comments

Comments
 (0)