diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListOperations.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Operations_List.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListOperations.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Operations_List.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/CheckNameAvailability.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CheckNameAvailability.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/CheckNameAvailability.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CheckNameAvailability.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/CreateOrUpdate.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_CreateOrUpdate.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Delete.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Delete.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Delete.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Delete.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Get.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Get.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Get.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListByResourceGroup.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListByResourceGroup.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListByResourceGroup.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListBySubscription.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListBySubscription.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListBySubscription.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListKeys.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListKeys.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListKeys.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_ListKeys.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/RegenerateKey.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_RegenerateKey.json similarity index 81% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/RegenerateKey.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_RegenerateKey.json index e38114455fb5..54492c01d831 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/RegenerateKey.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_RegenerateKey.json @@ -13,8 +13,8 @@ "body": { "primaryKey": "primaryAccessKey", "secondaryKey": "secondaryAccessKey", - "primaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=primaryAccessKey;", - "secondaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=secondaryAccessKey;" + "primaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=primaryAccessKey;Version=1.0;", + "secondaryConnectionString": "Endpoint=https://yourServiceName.service.signalr.net;AccessKey=secondaryAccessKey;Version=1.0;" }, "headers": { "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult..." diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Restart.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Restart.json new file mode 100644 index 000000000000..e3f208dab178 --- /dev/null +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Restart.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2018-10-01", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "resourceName": "mySignalRService" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult..." + } + }, + "204": {} + } +} \ No newline at end of file diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Update.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Update.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/SignalR_Update.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListUsagesByLocation.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Usages_List.json similarity index 100% rename from specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/ListUsagesByLocation.json rename to specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/examples/Usages_List.json diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json index e0f3ff03dc69..1e86cc83ffd0 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2018-10-01/signalr.json @@ -40,8 +40,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "ListOperations": { - "$ref": "./examples/ListOperations.json" + "Operations_List": { + "$ref": "./examples/Operations_List.json" } } } @@ -86,8 +86,8 @@ } }, "x-ms-examples": { - "CheckNameAvailability": { - "$ref": "./examples/CheckNameAvailability.json" + "SignalR_CheckNameAvailability": { + "$ref": "./examples/SignalR_CheckNameAvailability.json" } } } @@ -119,8 +119,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "ListBySubscription": { - "$ref": "./examples/ListBySubscription.json" + "SignalR_ListBySubscription": { + "$ref": "./examples/SignalR_ListBySubscription.json" } } } @@ -155,8 +155,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "ListByResourceGroup": { - "$ref": "./examples/ListByResourceGroup.json" + "SignalR_ListByResourceGroup": { + "$ref": "./examples/SignalR_ListByResourceGroup.json" } } } @@ -191,8 +191,8 @@ } }, "x-ms-examples": { - "ListKeys": { - "$ref": "./examples/ListKeys.json" + "SignalR_ListKeys": { + "$ref": "./examples/SignalR_ListKeys.json" } } } @@ -237,13 +237,13 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "RegenerateKey": { - "$ref": "./examples/RegenerateKey.json" + "SignalR_RegenerateKey": { + "$ref": "./examples/SignalR_RegenerateKey.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/SignalR/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}": { "get": { "tags": [ "SignalR" @@ -266,15 +266,15 @@ ], "responses": { "200": { - "description": "Success. The response describe the corresponding SignalR service.", + "description": "Success. The response describes the corresponding SignalR service.", "schema": { "$ref": "#/definitions/SignalRResource" } } }, "x-ms-examples": { - "Get": { - "$ref": "./examples/Get.json" + "SignalR_Get": { + "$ref": "./examples/SignalR_Get.json" } } }, @@ -315,13 +315,13 @@ } }, "202": { - "description": "Accepted. The response indicates the exiting SignalR service is now updating and contains a Location header to query the operation result.." + "description": "Accepted. The response indicates the exiting SignalR service is now updating and contains a Location header to query the operation result.." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "CreateOrUpdate": { - "$ref": "./examples/CreateOrUpdate.json" + "SignalR_CreateOrUpdate": { + "$ref": "./examples/SignalR_CreateOrUpdate.json" } } }, @@ -355,8 +355,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete": { - "$ref": "./examples/Delete.json" + "SignalR_Delete": { + "$ref": "./examples/SignalR_Delete.json" } } }, @@ -402,8 +402,45 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Update": { - "$ref": "./examples/Update.json" + "SignalR_Update": { + "$ref": "./examples/SignalR_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart": { + "post": { + "tags": [ + "SignalR" + ], + "description": "Operation to restart a SignalR service.", + "operationId": "SignalR_Restart", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SignalRServiceName" + } + ], + "responses": { + "202": { + "description": "Accepted. The response indicates the restart operation is performed in the background." + }, + "204": { + "description": "Success. The response indicates the operation is successful and no content will be returned." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "SignalR_Restart": { + "$ref": "./examples/SignalR_Restart.json" } } } @@ -442,8 +479,8 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "ListUsagesByLocation": { - "$ref": "./examples/ListUsagesByLocation.json" + "Usages_List": { + "$ref": "./examples/Usages_List.json" } } } @@ -751,7 +788,7 @@ "type": "string" }, "tier": { - "description": "Optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead for Basic tier.", + "description": "Optional tier of this particular SKU. `Basic` is deprecated, use `Standard` instead.", "enum": [ "Free", "Basic", @@ -820,13 +857,13 @@ }, "publicPort": { "format": "int32", - "description": "The publicly accessibly port of the SignalR service which is designed for browser/client side usage.", + "description": "The publicly accessible port of the SignalR service which is designed for browser/client side usage.", "type": "integer", "readOnly": true }, "serverPort": { "format": "int32", - "description": "The publicly accessibly port of the SignalR service which is designed for customer server side usage.", + "description": "The publicly accessible port of the SignalR service which is designed for customer server side usage.", "type": "integer", "readOnly": true }, diff --git a/specification/signalr/resource-manager/readme.md b/specification/signalr/resource-manager/readme.md index 772e6929879b..45715e5c1769 100644 --- a/specification/signalr/resource-manager/readme.md +++ b/specification/signalr/resource-manager/readme.md @@ -29,6 +29,20 @@ openapi-type: arm tag: package-2018-10-01 ``` +### Suppression + +``` yaml +directive: + - suppress: EnumInsteadOfBoolean + from: signalr.json + where: $.definitions.NameAvailability.properties.nameAvailable + reason: The boolean properties 'nameAvailable' is actually boolean value defined by Azure API spec + - suppress: EnumInsteadOfBoolean + from: signalr.json + where: $.definitions.Dimension.properties.toBeExportedForShoebox + reason: The boolean properties 'toBeExportedForShoebox' is defined by Geneva metrics +``` + ### Tag: package-2018-10-01 These settings apply only when `--tag=package-2018-10-01` is specified on the command line.