Skip to content

Commit

Permalink
Azure SignalR - Adding new api-version 2023-03-01-preview (Azure#22948)
Browse files Browse the repository at this point in the history
* init 2023-03-01-preview for signalr and webpubsub. Copied from 2022-02-01

* add new api version 2023-03-01-preview

* revert changes to package-lock.json and package.json

* 1. Add restart to replica
2. replica tracedResource, subscriptionId, resourceGroup, apiVersion within commonTYpe in v5
3. return 202 for patch operation
4. add 'x-ms-long-running-operation-options' for put operation
5. Add pattern to resourceName and replicaName

* 1. Change response status code to 202 for patch
2. Fix the example naming
3. Add location header for post 202, change  'final-state-via' property to 'location' for POST

* 1. Fix example response body
2. Fix "x-ms-long-running-operation-options" for put

* 1. Fix example response body
2. Fix LocationHeader for PATCH

* 1. Remove SystemData form models inherited from "Resource"
2. Reuse trackedResource, privateEndpointConnection, privateEndpointConnectionName

* Fix default value of clientCertEnabled

* Revert privateEndpointConnection since model in common is different from ours

* Fix the resourceName pattern and example

* fix naming pattern

* 1. Add 200 for signalrRegenerate Key
2. fmt example
  • Loading branch information
bjqian authored and JoshLove-msft committed Apr 25, 2023
1 parent 7cd46a1 commit 579f9f1
Show file tree
Hide file tree
Showing 86 changed files with 11,433 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2023-03-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.SignalRService/SignalR/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.SignalRService",
"resource": "SignalR",
"operation": "Manage SignalR (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,44 @@
{
"parameters": {
"parameters": {
"properties": {
"keyVaultBaseUri": "https://myvault.keyvault.azure.net/",
"keyVaultSecretName": "mycert",
"keyVaultSecretVersion": "bb6a44b2743f47f68dad0d6cc9756432"
}
},
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"certificateName": "myCert"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"keyVaultBaseUri": "https://myvault.keyvault.azure.net/",
"keyVaultSecretName": "mycert",
"keyVaultSecretVersion": "bb6a44b2743f47f68dad0d6cc9756432"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert",
"name": "myCert",
"type": "Microsoft.SignalRService/SignalR/customCertificates"
}
},
"201": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"keyVaultBaseUri": "https://myvault.keyvault.azure.net/",
"keyVaultSecretName": "mycert",
"keyVaultSecretVersion": "bb6a44b2743f47f68dad0d6cc9756432"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert",
"name": "myCert",
"type": "Microsoft.SignalRService/SignalR/customCertificates"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"certificateName": "myCert"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"certificateName": "myCert"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"keyVaultBaseUri": "https://myvault.keyvault.azure.net/",
"keyVaultSecretName": "mycert",
"keyVaultSecretVersion": "bb6a44b2743f47f68dad0d6cc9756432"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert",
"name": "myCert",
"type": "Microsoft.SignalRService/SignalR/customCertificates"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"certificateName": "myCert"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"keyVaultBaseUri": "https://myvault.keyvault.azure.net/",
"keyVaultSecretName": "mycert",
"keyVaultSecretVersion": "bb6a44b2743f47f68dad0d6cc9756432"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert",
"name": "myCert",
"type": "Microsoft.SignalRService/SignalR/customCertificates"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"parameters": {
"properties": {
"domainName": "example.com",
"customCertificate": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert"
}
}
},
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"name": "myDomain"
},
"responses": {
"201": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"domainName": "example.com",
"customCertificate": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customDomains/myDomain",
"name": "myDomain"
},
"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": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"name": "example"
},
"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,24 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"name": "example"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"domainName": "example.com",
"customCertificate": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customDomains/myDomain",
"name": "myDomain"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"name": "myDomain"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"domainName": "example.com",
"customCertificate": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customDomains/myDomain",
"name": "myDomain"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"privateEndpointConnectionName": "mysignalrservice.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": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService",
"privateEndpointConnectionName": "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
},
"groupIds": [
"signalr"
],
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"name": "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"type": "Microsoft.SignalRService/SignalR/privateEndpointConnections",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2015-02-03T04:05:06Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2015-02-03T04:05:06Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2023-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"resourceName": "mySignalRService"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
},
"groupIds": [
"signalr"
],
"privateLinkServiceConnectionState": {
"status": "Approved",
"actionsRequired": "None"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/privateEndpointConnections/mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"name": "mysignalrservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
"type": "Microsoft.SignalRService/SignalR/privateEndpointConnections",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2015-02-03T04:05:06Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2015-02-03T04:05:06Z"
}
}
]
}
}
}
}
Loading

0 comments on commit 579f9f1

Please sign in to comment.