Skip to content

Commit

Permalink
[Web PubSub] Add web pubsub stable version 2021-10-01 (Azure#16045)
Browse files Browse the repository at this point in the history
* Add web pubsub stable version 2021-10-01

* Fix structure

* Update swagger
  • Loading branch information
zackliu authored and LeiWang3 committed Mar 31, 2022
1 parent 9aba351 commit 86bcf24
Show file tree
Hide file tree
Showing 31 changed files with 4,168 additions and 2 deletions.
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,85 @@
{
"parameters": {
"parameters": {
"properties": {
"eventHandlers": [
{
"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"
},
"responses": {
"200": {
"body": {
"properties": {
"eventHandlers": [
{
"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",
"name": "exampleHub",
"type": "Microsoft.SignalRService/SignalR/hubs"
}
},
"201": {
"body": {
"properties": {
"eventHandlers": [
{
"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",
"name": "exampleHub",
"type": "Microsoft.SignalRService/SignalR/hubs"
},
"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,36 @@
{
"parameters": {
"api-version": "2021-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "myWebPubSubService",
"hubName": "exampleHub"
},
"responses": {
"200": {
"body": {
"properties": {
"eventHandlers": [
{
"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",
"name": "exampleHub",
"type": "Microsoft.SignalRService/SignalR/hubs"
}
}
}
}
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"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"eventHandlers": [
{
"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",
"name": "exampleHub",
"type": "Microsoft.SignalRService/SignalR/hubs"
}
]
}
}
}
}
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",
"privateEndpointConnectionName": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e"
},
"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",
"privateEndpointConnectionName": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e"
},
"responses": {
"200": {
"body": {
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2015-02-03T04:05:06Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2015-02-03T04:05:06Z"
},
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
},
"groupIds": [
"webpubsub"
],
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/privateEndpointConnections/mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"name": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"type": "Microsoft.SignalRService/WebPubSub/privateEndpointConnections"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2021-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "myWebPubSubService"
},
"responses": {
"200": {
"body": {
"value": [
{
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2015-02-03T04:05:06Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2015-02-03T04:05:06Z"
},
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
},
"groupIds": [
"webpubsub"
],
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/privateEndpointConnections/mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"name": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"type": "Microsoft.SignalRService/WebPubSub/privateEndpointConnections"
}
]
}
}
}
}
Loading

0 comments on commit 86bcf24

Please sign in to comment.