-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[WebPubSub] TSP Migration for WebPubSub #35853
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
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
04663a3
init files from conversion
kashifkhan 99cd0c1
initial checklist fixes
kashifkhan b59baaf
fix service decorator info
kashifkhan 00c8a06
enum to union in models
kashifkhan ea0d5e2
newly compiled files
kashifkhan 55bba96
add linter
kashifkhan 830f1cd
initial warnings fixes
kashifkhan e1d059e
updates
kashifkhan 9e7fc82
fix
kashifkhan 3c95c61
suppress warnings
kashifkhan 3b43716
suppress for std ops
kashifkhan a3186c8
emitter updates
kashifkhan cc62ebf
rename interface name to match output
kashifkhan f4c3d40
adjust ns
kashifkhan 2dfffcf
mod output dir location
kashifkhan 3db27c1
add tokencredential
kashifkhan de84be8
ignore mqtt for spelling
kashifkhan e397e7b
prettier fixes
kashifkhan 8ff7c58
match the orig doc
kashifkhan 57bbcb5
client customizations
kashifkhan ac23443
update method name
kashifkhan 0843f95
update version info
kashifkhan 5e0246a
rename operation to match old
kashifkhan 7309f71
fix package pprint name
kashifkhan 5ed16b7
align error codes and success
kashifkhan 715aeaf
fix kwarg names
kashifkhan 13e6ac8
rename operation to match
kashifkhan e48adbe
update ns name
kashifkhan 7587f30
mark model as pagedResult
kashifkhan 9593d5d
removed unused model
kashifkhan dc166ec
removed openapi import
kashifkhan fd8e047
leave query as is
kashifkhan 47b8554
fix listconn op to be a list, fix model item
kashifkhan dad62e9
clean up tsp config
kashifkhan 44e52ba
fix typo
kashifkhan 84c08af
info for other languages, commented out for now
kashifkhan be1cb27
add suppressions for backwards comp
kashifkhan 8d6250c
removed unused imports
kashifkhan 5bd8052
remove interfaces, remove client location
kashifkhan 8467a12
add connection_id to groupmember
kashifkhan 9b674da
fix missing json ref
kashifkhan 23c15f3
add new json file
kashifkhan e9422e5
changes to tspconfig
kashifkhan 651a6e0
changes for other langs
kashifkhan 9b7c4d2
add suppressions
kashifkhan 06a8af0
rename
kashifkhan 77fb0ee
add csharp pckage name
kashifkhan e3eb8f5
tsp config changes
kashifkhan 13f1672
add reference
kashifkhan 1f255b2
add ts package dir
kashifkhan 4ae8566
remove additional files
kashifkhan f6c88af
reset readme file
kashifkhan aa8419e
new namespace
kashifkhan 1e896cb
remove old swagger
kashifkhan 286c1fe
add new swagger and examples
kashifkhan 235488a
point readme to new swagger
kashifkhan 3efd0fb
fix readme
kashifkhan 635aa4c
some minor changes
kashifkhan 6f13575
align response codes with openapi
kashifkhan ba04a50
align response codes
kashifkhan adba284
update to compliant names
kashifkhan 11e6f1c
try to fix model validation byte error
kashifkhan da75b0d
fix byte validation error
kashifkhan 4f59e9a
fix deprecation error
kashifkhan 6dd5515
fix validation
kashifkhan 78ae894
keep the old swagger name
kashifkhan d915ee7
readme update for swagger rename
kashifkhan 45867e0
small fixes
kashifkhan ca5c664
formatting
kashifkhan eb73a9b
fix js tspconfig
kashifkhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
specification/webpubsub/Azure.Messaging.WebPubSub/client.tsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import "./main.tsp"; | ||
| import "@azure-tools/typespec-client-generator-core"; | ||
|
|
||
| using Azure.ClientGenerator.Core; | ||
|
|
||
| namespace Customizations; | ||
|
|
||
| /** Client options for Azure Web PubSub. */ | ||
| model WebPubSubClientOptions { | ||
| /** Target hub name, which should start with alphabetic characters and only contain | ||
| alpha-numeric characters or underscore. */ | ||
| hub: string; | ||
| } | ||
|
|
||
| @@clientInitialization(WebPubSub, | ||
| { | ||
| parameters: WebPubSubClientOptions, | ||
| } | ||
| ); | ||
10 changes: 10 additions & 0 deletions
10
...n/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/HealthApi_GetServiceStatus.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "GetServiceStatus", | ||
| "title": "GetServiceStatus" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...bpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_AddConnectionToGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "group": "group1", | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "200": {} | ||
| }, | ||
| "operationId": "AddConnectionToGroup", | ||
| "title": "AddConnectionToGroup" | ||
| } |
18 changes: 18 additions & 0 deletions
18
...ubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_AddConnectionsToGroups.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "groupsToAdd": { | ||
| "filter": "startswith(userId, 'listener-')", | ||
| "groups": [ | ||
| "group1", | ||
| "group2" | ||
| ] | ||
| }, | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "AddConnectionsToGroups", | ||
| "title": "AddConnectionsToGroups" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...ion/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_AddUserToGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "group": "group1", | ||
| "hub": "hub1", | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "200": {} | ||
| }, | ||
| "operationId": "AddUserToGroup", | ||
| "title": "AddUserToGroup" | ||
| } |
15 changes: 15 additions & 0 deletions
15
...on/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_CheckPermission.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1", | ||
| "permission": "joinLeaveGroup", | ||
| "targetName": "group1" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "404": {} | ||
| }, | ||
| "operationId": "CheckPermission", | ||
| "title": "CheckPermission" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...ebpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_CloseAllConnections.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "hub": "hub1", | ||
| "reason": "Close reason" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "CloseAllConnections", | ||
| "title": "CloseAllConnections" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...on/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_CloseConnection.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1", | ||
| "reason": "Close reason" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "CloseConnection", | ||
| "title": "CloseConnection" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...pubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_CloseGroupConnections.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "group": "group1", | ||
| "hub": "hub1", | ||
| "reason": "Close reason" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "CloseGroupConnections", | ||
| "title": "CloseGroupConnections" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...bpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_CloseUserConnections.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "hub": "hub1", | ||
| "reason": "Close reason", | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "CloseUserConnections", | ||
| "title": "CloseUserConnections" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...n/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_ConnectionExists.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "404": {} | ||
| }, | ||
| "operationId": "ConnectionExists", | ||
| "title": "ConnectionExists" | ||
| } |
18 changes: 18 additions & 0 deletions
18
...ebpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_GenerateClientToken.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "clientType": "MQTT", | ||
| "hub": "hub1", | ||
| "minutesToExpire": 5, | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "token": "ABCDEFG.ABC.ABC" | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "GenerateClientToken", | ||
| "title": "GenerateClientToken" | ||
| } |
14 changes: 14 additions & 0 deletions
14
...on/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_GrantPermission.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1", | ||
| "permission": "joinLeaveGroup", | ||
| "targetName": "group1" | ||
| }, | ||
| "responses": { | ||
| "200": {} | ||
| }, | ||
| "operationId": "GrantPermission", | ||
| "title": "GrantPermission" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...cation/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_GroupExists.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "group": "group1", | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "404": {} | ||
| }, | ||
| "operationId": "GroupExists", | ||
| "title": "GroupExists" | ||
| } |
28 changes: 28 additions & 0 deletions
28
...ubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_ListConnectionsInGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "group": "group1", | ||
| "hub": "hub1", | ||
| "maxpagesize": 200, | ||
| "top": 1000 | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "nextLink": "https://serviceendpoint/api/hubs/hub1/groups/g1/connections?top=1000&maxpagesize=200&continuationToken=token", | ||
| "value": [ | ||
| { | ||
| "connectionId": "c1", | ||
| "userId": "u1" | ||
| }, | ||
| { | ||
| "connectionId": "c2", | ||
| "userId": "u2" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "operationId": "ListConnectionsInGroup", | ||
| "title": "ListConnectionsInGroup" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...zure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RemoveConnectionFromAllGroups.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RemoveConnectionFromAllGroups", | ||
| "title": "RemoveConnectionFromAllGroups" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...ub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RemoveConnectionFromGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "group": "group1", | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RemoveConnectionFromGroup", | ||
| "title": "RemoveConnectionFromGroup" | ||
| } |
18 changes: 18 additions & 0 deletions
18
.../Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RemoveConnectionsFromGroups.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "groupsToRemove": { | ||
| "filter": "startswith(userId, 'listener-')", | ||
| "groups": [ | ||
| "group1", | ||
| "group2" | ||
| ] | ||
| }, | ||
| "hub": "hub1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RemoveConnectionsFromGroups", | ||
| "title": "RemoveConnectionsFromGroups" | ||
| } |
12 changes: 12 additions & 0 deletions
12
...bsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RemoveUserFromAllGroups.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "hub": "hub1", | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RemoveUserFromAllGroups", | ||
| "title": "RemoveUserFromAllGroups" | ||
| } |
13 changes: 13 additions & 0 deletions
13
...ebpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RemoveUserFromGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "group": "group1", | ||
| "hub": "hub1", | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RemoveUserFromGroup", | ||
| "title": "RemoveUserFromGroup" | ||
| } |
14 changes: 14 additions & 0 deletions
14
...n/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_RevokePermission.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1", | ||
| "permission": "joinLeaveGroup", | ||
| "targetName": "group1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "RevokePermission", | ||
| "title": "RevokePermission" | ||
| } |
14 changes: 14 additions & 0 deletions
14
...fication/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_SendToAll.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "filter": "startswith(userId, 'listener-')", | ||
| "hub": "hub1", | ||
| "message": "TWVzc2FnZSB0byBzZW5k", | ||
| "messageTtlSeconds": 15 | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "SendToAll", | ||
| "title": "SendToAll" | ||
| } |
14 changes: 14 additions & 0 deletions
14
...n/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_SendToConnection.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "connectionId": "connection1", | ||
| "hub": "hub1", | ||
| "message": "TWVzc2FnZSB0byBzZW5k", | ||
| "messageTtlSeconds": 15 | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "SendToConnection", | ||
| "title": "SendToConnection" | ||
| } |
15 changes: 15 additions & 0 deletions
15
...cation/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_SendToGroup.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "filter": "startswith(userId, 'listener-')", | ||
| "group": "group1", | ||
| "hub": "hub1", | ||
| "message": "TWVzc2FnZSB0byBzZW5k", | ||
| "messageTtlSeconds": 15 | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "SendToGroup", | ||
| "title": "SendToGroup" | ||
| } |
15 changes: 15 additions & 0 deletions
15
...ication/webpubsub/Azure.Messaging.WebPubSub/examples/2024-12-01/WebPubSub_SendToUser.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2024-12-01", | ||
| "filter": "startswith(userId, 'listener-')", | ||
| "hub": "hub1", | ||
| "message": "TWVzc2FnZSB0byBzZW5k", | ||
| "messageTtlSeconds": 15, | ||
| "userId": "user1" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| }, | ||
| "operationId": "SendToUser", | ||
| "title": "SendToUser" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.