Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebPubSub] Support new release 2022-11-01 #27385

Merged
merged 25 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,16 @@
"words": [
"euap"
]
},
{
"filename": "sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/_serialization.py",
"words": [
"Nify",
"ctxt",
"unflattened",
"wday",
"deseralize"
]
}
],
"allowCompoundWords": true
Expand Down
8 changes: 8 additions & 0 deletions sdk/webpubsub/azure-messaging-webpubsubservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 1.1.0b1 (2022-11-01)

### Features Added

- Support sending with "filter" syntax
msyyc marked this conversation as resolved.
Show resolved Hide resolved
- Support generating access url with initial groups
- Add new API "removeConnectionFromAllGroups"

## 1.0.1 (2022-02-15)

### Bugs Fixed
Expand Down
6 changes: 3 additions & 3 deletions sdk/webpubsub/azure-messaging-webpubsubservice/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include *.md
include azure/__init__.py
include azure/messaging/__init__.py
include LICENSE
include azure/messaging/webpubsubservice/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/messaging/webpubsubservice/py.typed
include azure/__init__.py
include azure/messaging/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,31 @@
from copy import deepcopy
from typing import Any, TYPE_CHECKING

from msrest import Deserializer, Serializer

from azure.core import PipelineClient
from azure.core.rest import HttpRequest, HttpResponse

from ._configuration import WebPubSubServiceClientConfiguration
from ._operations import WebPubSubServiceClientOperationsMixin
from ._serialization import Deserializer, Serializer

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Dict

from azure.core.credentials import TokenCredential


class WebPubSubServiceClient(WebPubSubServiceClientOperationsMixin):
class WebPubSubServiceClient(
WebPubSubServiceClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""WebPubSubServiceClient.

:param hub: Target hub name, which should start with alphabetic characters and only contain
alpha-numeric characters or underscore.
alpha-numeric characters or underscore. Required.
:type hub: str
:param endpoint: HTTP or HTTPS endpoint for the Web PubSub service instance.
:param endpoint: HTTP or HTTPS endpoint for the Web PubSub service instance. Required.
:type endpoint: str
:param credential: Credential needed for the client to connect to Azure.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -57,7 +56,7 @@ def send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
>>> response = client.send_request(request)
<HttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

:param request: The network request you want to make. Required.
:type request: ~azure.core.rest.HttpRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ class WebPubSubServiceClientConfiguration(Configuration): # pylint: disable=too
attributes.

:param hub: Target hub name, which should start with alphabetic characters and only contain
alpha-numeric characters or underscore.
alpha-numeric characters or underscore. Required.
:type hub: str
:param endpoint: HTTP or HTTPS endpoint for the Web PubSub service instance.
:param endpoint: HTTP or HTTPS endpoint for the Web PubSub service instance. Required.
:type endpoint: str
:param credential: Credential needed for the client to connect to Azure.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2022-11-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, hub: str, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
super(WebPubSubServiceClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2021-10-01") # type: str
api_version = kwargs.pop("api_version", "2022-11-01") # type: str

if hub is None:
raise ValueError("Parameter 'hub' must not be None.")
Expand Down
Loading