Skip to content

Commit 800264b

Browse files
authored
Update list_connections API for WebPubSub service (#41865)
* Update list_connections API for WebPubSub service
1 parent 578c471 commit 800264b

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class GroupMember:
99
:type user_id: Optional[str]
1010
"""
1111

12-
def __init__(self, connection_id: str, user_id: Optional[str] = None) -> None:
12+
def __init__(self, *, connection_id: str, user_id: Optional[str] = None) -> None:
1313
self._connection_id = connection_id
1414
self._user_id = user_id
1515

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def list_connections(
157157
*,
158158
group: str,
159159
top: Optional[int] = None,
160-
continuation_token_parameter: Optional[str] = None,
161160
**kwargs: Any
162161
) -> ItemPaged[GroupMember]:
163162
"""List connections in a group.
@@ -170,12 +169,6 @@ def list_connections(
170169
:keyword top: The maximum number of connections to return. If the value is not set, then all
171170
the connections in a group are returned. Default value is None.
172171
:paramtype top: int
173-
:keyword continuation_token_parameter: A token that allows the client to retrieve the next page
174-
of results. This parameter is provided by the service in the response of a previous request
175-
when there are additional results to be fetched. Clients should include the continuationToken
176-
in the next request to receive the subsequent page of data. If this parameter is omitted, the
177-
server will return the first page of results. Default value is None.
178-
:paramtype continuation_token_parameter: str
179172
:return: An iterator like instance of GroupMember object
180173
:rtype: ~azure.core.paging.ItemPaged[GroupMember]
181174
:raises ~azure.core.exceptions.HttpResponseError:
@@ -196,7 +189,6 @@ def list_connections(
196189
paged_json = super().list_connections(
197190
group=group,
198191
top=top,
199-
continuation_token_parameter=continuation_token_parameter,
200192
**kwargs
201193
)
202194

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def list_connections(
137137
*,
138138
group: str,
139139
top: Optional[int] = None,
140-
continuation_token_parameter: Optional[str] = None,
141140
**kwargs: Any
142141
) -> AsyncItemPaged[GroupMember]:
143142
"""List connections in a group.
@@ -150,12 +149,6 @@ def list_connections(
150149
:keyword top: The maximum number of connections to return. If the value is not set, then all
151150
the connections in a group are returned. Default value is None.
152151
:paramtype top: int
153-
:keyword continuation_token_parameter: A token that allows the client to retrieve the next page
154-
of results. This parameter is provided by the service in the response of a previous request
155-
when there are additional results to be fetched. Clients should include the continuationToken
156-
in the next request to receive the subsequent page of data. If this parameter is omitted, the
157-
server will return the first page of results. Default value is None.
158-
:paramtype continuation_token_parameter: str
159152
:return: An iterator like instance of GroupMember object
160153
:rtype: ~azure.core.async_paging.AsyncItemPaged[GroupMember]
161154
:raises ~azure.core.exceptions.HttpResponseError:
@@ -176,7 +169,6 @@ def list_connections(
176169
paged_json = super().list_connections(
177170
group=group,
178171
top=top,
179-
continuation_token_parameter=continuation_token_parameter,
180172
**kwargs
181173
)
182174

0 commit comments

Comments
 (0)