-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Web PubSub] Add web pubsub stable version 2021-10-01 #16045
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Microsoft.SignalRService/WebPubSub/read", | ||
| "isDataAction": false, | ||
| "display": { | ||
| "provider": "Microsoft.SignalRService", | ||
| "resource": "WebPubSub", | ||
| "operation": "Manage WebPubSub (read-only)", | ||
| "description": "View the resource settings and configurations in the management portal or through API" | ||
| }, | ||
| "properties": {} | ||
| } | ||
| ], | ||
| "nextLink": "providers/Microsoft.SignalRService?$skipToken={opaqueString}" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "parameters": { | ||
| "location": "eastus", | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage1", | ||
| "currentValue": 0, | ||
| "limit": 100, | ||
| "name": { | ||
| "value": "Usage1", | ||
| "localizedValue": "Usage1" | ||
| }, | ||
| "unit": "Count" | ||
| }, | ||
| { | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage2", | ||
| "currentValue": 0, | ||
| "limit": 100, | ||
| "name": { | ||
| "value": "Usage2", | ||
| "localizedValue": "Usage2" | ||
| }, | ||
| "unit": "Count" | ||
| } | ||
| ], | ||
| "nextLink": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToMoreResults..." | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| { | ||
| "parameters": { | ||
| "parameters": { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub", | ||
| "eventHandlerName": "exampleEventHandler" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| }, | ||
| "headers": { | ||
| "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...", | ||
| "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub", | ||
| "eventHandlerName": "exampleEventHandler" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": { | ||
| "headers": { | ||
| "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...", | ||
| "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..." | ||
| } | ||
| }, | ||
| "204": {} | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub", | ||
| "eventHandlerName": "exampleEventHandler" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
zackliu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| { | ||
| "parameters": { | ||
| "parameters": { | ||
| "properties": { | ||
| "eventHandlers": [ | ||
| { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nested resource must be created by its own PUT.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then you should model event handlers as a property of webpubsubhub only not as a child resource. You can't have both. The keyvault case is okay since access policies are a property of keyvault. (its PUT api does not comply to the RPC though).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, if event handler is just a property, can we have an api to update one event handler's properties only. I mean does ARM have such an api guidance to achieve this? Why access policy is just a property but not a sub-resource?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PATCH is for partial update and it can update one event handler only. You can't model a property of the parent resource as a child resource. They have different RBAC and you need to update the parent if a child resources are updated /deleted or vice versa.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After discussion, we decided not to introduce another subresource for event handler. We treat it as property only |
||
| } | ||
| }, | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "eventHandlers": [ | ||
| { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| } | ||
| ] | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub", | ||
| "name": "exampleHub" | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "properties": { | ||
| "eventHandlers": [ | ||
| { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| } | ||
| ] | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub", | ||
| "name": "exampleHub" | ||
| }, | ||
| "headers": { | ||
| "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...", | ||
| "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": { | ||
| "headers": { | ||
| "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...", | ||
| "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus..." | ||
| } | ||
| }, | ||
| "204": {} | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2021-10-01", | ||
| "subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
| "resourceGroupName": "myResourceGroup", | ||
| "resourceName": "myWebPubSubService", | ||
| "hubName": "exampleHub" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "eventHandlers": [ | ||
| { | ||
| "properties": { | ||
| "urlTemplate": "http://host.com", | ||
| "userEventPattern": "*", | ||
| "systemEvents": [ | ||
| "connect", | ||
| "connected" | ||
| ], | ||
| "auth": { | ||
| "type": "ManagedIdentity", | ||
| "managedIdentity": { | ||
| "resource": "abc" | ||
| } | ||
| } | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub/eventHandlers/exampleEventHandler", | ||
| "name": "exampleEventHandler" | ||
| } | ||
| ] | ||
| }, | ||
| "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/hubs/exampleHub", | ||
| "name": "exampleHub" | ||
| } | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.