Skip to content

Commit 6d5945b

Browse files
authored
[WebPubSub] Fix TSP migration deviations for Python SDK (#46175)
* regenerate from the repaired TSP * enhance tests * skip live websocket coverage test * update test recording * update typespec reference * update for comments * remove the generated tests and samples
1 parent a9b4008 commit 6d5945b

36 files changed

Lines changed: 1753 additions & 1736 deletions
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"apiVersion": "2024-12-01"
2+
"apiVersion": "2024-12-01",
3+
"apiVersions": {
4+
"WebPubSubService": "2024-12-01"
5+
}
36
}

sdk/webpubsub/azure-messaging-webpubsubservice/apiview-properties.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"CrossLanguageDefinitionId": {
44
"azure.messaging.webpubsubservice.models.AddToGroupsRequest": "WebPubSubService.AddToGroupsRequest",
55
"azure.messaging.webpubsubservice.models.ClientTokenResponse": "WebPubSubService.ClientTokenResponse",
6+
"azure.messaging.webpubsubservice.models.ErrorDetail": "WebPubSubService.ErrorDetail",
67
"azure.messaging.webpubsubservice.models.GroupMember": "WebPubSubService.GroupMember",
8+
"azure.messaging.webpubsubservice.models.InnerError": "WebPubSubService.InnerError",
79
"azure.messaging.webpubsubservice.models.RemoveFromGroupsRequest": "WebPubSubService.RemoveFromGroupsRequest",
810
"azure.messaging.webpubsubservice.models.ResponseContentType": "WebPubSubService.ResponseContentType",
911
"azure.messaging.webpubsubservice.models.WebPubSubClientType": "WebPubSubService.WebPubSubClientType",
@@ -15,8 +17,8 @@
1517
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.add_connections_to_groups": "WebPubSubService.addConnectionsToGroups",
1618
"azure.messaging.webpubsubservice.WebPubSubServiceClient.close_all_connections": "WebPubSubService.closeAllConnections",
1719
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.close_all_connections": "WebPubSubService.closeAllConnections",
18-
"azure.messaging.webpubsubservice.WebPubSubServiceClient.get_client_access_token": "WebPubSubService.getClientAccessToken",
19-
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.get_client_access_token": "WebPubSubService.getClientAccessToken",
20+
"azure.messaging.webpubsubservice.WebPubSubServiceClient.generate_client_token": "WebPubSubService.generateClientToken",
21+
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.generate_client_token": "WebPubSubService.generateClientToken",
2022
"azure.messaging.webpubsubservice.WebPubSubServiceClient.remove_connections_from_groups": "WebPubSubService.removeConnectionsFromGroups",
2123
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.remove_connections_from_groups": "WebPubSubService.removeConnectionsFromGroups",
2224
"azure.messaging.webpubsubservice.WebPubSubServiceClient.send_to_all": "WebPubSubService.sendToAll",
@@ -35,16 +37,16 @@
3537
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.close_group_connections": "WebPubSubService.closeGroupConnections",
3638
"azure.messaging.webpubsubservice.WebPubSubServiceClient.send_to_group": "WebPubSubService.sendToGroup",
3739
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.send_to_group": "WebPubSubService.sendToGroup",
38-
"azure.messaging.webpubsubservice.WebPubSubServiceClient.list_connections": "WebPubSubService.listConnections",
39-
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.list_connections": "WebPubSubService.listConnections",
40+
"azure.messaging.webpubsubservice.WebPubSubServiceClient.list_connections_in_group": "WebPubSubService.listConnectionsInGroup",
41+
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.list_connections_in_group": "WebPubSubService.listConnectionsInGroup",
4042
"azure.messaging.webpubsubservice.WebPubSubServiceClient.remove_connection_from_group": "WebPubSubService.removeConnectionFromGroup",
4143
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.remove_connection_from_group": "WebPubSubService.removeConnectionFromGroup",
4244
"azure.messaging.webpubsubservice.WebPubSubServiceClient.add_connection_to_group": "WebPubSubService.addConnectionToGroup",
4345
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.add_connection_to_group": "WebPubSubService.addConnectionToGroup",
4446
"azure.messaging.webpubsubservice.WebPubSubServiceClient.revoke_permission": "WebPubSubService.revokePermission",
4547
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.revoke_permission": "WebPubSubService.revokePermission",
46-
"azure.messaging.webpubsubservice.WebPubSubServiceClient.has_permission": "WebPubSubService.hasPermission",
47-
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.has_permission": "WebPubSubService.hasPermission",
48+
"azure.messaging.webpubsubservice.WebPubSubServiceClient.check_permission": "WebPubSubService.checkPermission",
49+
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.check_permission": "WebPubSubService.checkPermission",
4850
"azure.messaging.webpubsubservice.WebPubSubServiceClient.grant_permission": "WebPubSubService.grantPermission",
4951
"azure.messaging.webpubsubservice.aio.WebPubSubServiceClient.grant_permission": "WebPubSubService.grantPermission",
5052
"azure.messaging.webpubsubservice.WebPubSubServiceClient.user_exists": "WebPubSubService.userExists",

sdk/webpubsub/azure-messaging-webpubsubservice/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/webpubsub/azure-messaging-webpubsubservice",
5-
"Tag": "python/webpubsub/azure-messaging-webpubsubservice_34edba9a6b"
5+
"Tag": "python/webpubsub/azure-messaging-webpubsubservice_447df314c8"
66
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ class WebPubSubServiceClient(_WebPubSubServiceClientOperationsMixin):
3030
:param credential: Credential used to authenticate requests to the service. Required.
3131
:type credential: ~azure.core.credentials.TokenCredential
3232
:param hub: Target hub name, which should start with alphabetic characters and only contain
33-
alpha-numeric characters or underscore. Required.
33+
alpha-numeric characters or underscore. Required.
3434
:type hub: str
35-
:keyword api_version: The API version to use for this operation. Default value is "2024-12-01".
36-
Note that overriding this default value may result in unsupported behavior.
35+
:keyword api_version: The API version to use for this operation. Known values are "2024-12-01".
36+
Default value is "2024-12-01". Note that overriding this default value may result in
37+
unsupported behavior.
3738
:paramtype api_version: str
3839
"""
3940

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ class WebPubSubServiceClientConfiguration: # pylint: disable=too-many-instance-
2727
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param hub: Target hub name, which should start with alphabetic characters and only contain
30-
alpha-numeric characters or underscore. Required.
30+
alpha-numeric characters or underscore. Required.
3131
:type hub: str
32-
:keyword api_version: The API version to use for this operation. Default value is "2024-12-01".
33-
Note that overriding this default value may result in unsupported behavior.
32+
:keyword api_version: The API version to use for this operation. Known values are "2024-12-01".
33+
Default value is "2024-12-01". Note that overriding this default value may result in
34+
unsupported behavior.
3435
:paramtype api_version: str
3536
"""
3637

0 commit comments

Comments
 (0)