diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomCertificates_CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomCertificates_CreateOrUpdate.json index 6dbbc40396a2..939e821cef60 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomCertificates_CreateOrUpdate.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomCertificates_CreateOrUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "body": { + "parameters": { "properties": { "keyVaultBaseUri": "https://myvault.keyvault.azure.net/", "keyVaultSecretName": "mycert", diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_CreateOrUpdate.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_CreateOrUpdate.json index e508fecf1783..47529fb392f7 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_CreateOrUpdate.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_CreateOrUpdate.json @@ -1,25 +1,31 @@ { "parameters": { - "body": { + "parameters": { "properties": { - "certificateName": "cert" + "domainName": "example.com", + "customCertificate": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customCertificates/myCert" + } } }, "api-version": "2022-02-01", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "resourceName": "mySignalRService", - "domainName": "example.com" + "name": "myDomain" }, "responses": { "201": { "body": { "properties": { "provisioningState": "Succeeded", - "certificateName": "cert" + "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/customDomain/example.com", - "name": "example.com" + "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...", diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Delete.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Delete.json index 15f0b394ba35..d12a97577f20 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Delete.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Delete.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "resourceName": "mySignalRService", - "domainName": "example.com" + "name": "example" }, "responses": { "200": {}, diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Get.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Get.json index 84a5c7a0a6b1..793a34e8510d 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Get.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_Get.json @@ -4,17 +4,20 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "resourceName": "mySignalRService", - "domainName": "example.com" + "name": "example" }, "responses": { "200": { "body": { "properties": { "provisioningState": "Succeeded", - "certificateName": "cert" + "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/customDomain/example.com", - "name": "example.com" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customDomains/myDomain", + "name": "myDomain" } } } diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_List.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_List.json index b22a4e1246fd..1a690a58570e 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_List.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/examples/SignalRCustomDomains_List.json @@ -4,7 +4,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "myResourceGroup", "resourceName": "mySignalRService", - "domainName": "example.com" + "name": "myDomain" }, "responses": { "200": { @@ -13,10 +13,13 @@ { "properties": { "provisioningState": "Succeeded", - "certificateName": "cert" + "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/customDomain/example.com", - "name": "example.com" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/SignalR/mySignalRService/customDomains/myDomain", + "name": "myDomain" } ] } diff --git a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/signalr.json b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/signalr.json index 7e73c8d42e31..6f6537fd915e 100644 --- a/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/signalr.json +++ b/specification/signalr/resource-manager/Microsoft.SignalRService/stable/2022-02-01/signalr.json @@ -191,35 +191,32 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR": { "get": { "tags": [ "SignalR" ], - "description": "List all custom certificates.", - "operationId": "SignalRCustomCertificates_List", + "description": "Handles requests to list all resources in a resource group.", + "operationId": "SignalR_ListByResourceGroup", "produces": [ "application/json" ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ResourceName" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ResourceGroupParameter" } ], "responses": { "200": { - "description": "Success. The response describes custom certificates of the resource.", + "description": "Success. The response describes the list of resources in a resourceGroup.", "schema": { - "$ref": "#/definitions/CustomCertificateList" + "$ref": "#/definitions/SignalRResourceList" } }, "default": { @@ -233,23 +230,26 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "SignalRCustomCertificates_List": { - "$ref": "./examples/SignalRCustomCertificates_List.json" + "SignalR_ListByResourceGroup": { + "$ref": "./examples/SignalR_ListByResourceGroup.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}": { "get": { "tags": [ "SignalR" ], - "description": "Get a custom certificate.", - "operationId": "SignalRCustomCertificates_Get", + "description": "Get the resource and its properties.", + "operationId": "SignalR_Get", "produces": [ "application/json" ], "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "$ref": "#/parameters/SubscriptionIdParameter" }, @@ -258,23 +258,13 @@ }, { "$ref": "#/parameters/ResourceName" - }, - { - "in": "path", - "name": "certificateName", - "description": "Custom certificate name", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success. The response describe the corresponding custom certificate.", + "description": "Success. The response describes the corresponding resource.", "schema": { - "$ref": "#/definitions/CustomCertificate" + "$ref": "#/definitions/SignalRResource" } }, "default": { @@ -285,8 +275,8 @@ } }, "x-ms-examples": { - "SignalRCustomCertificates_Get": { - "$ref": "./examples/SignalRCustomCertificates_Get.json" + "SignalR_Get": { + "$ref": "./examples/SignalR_Get.json" } } }, @@ -294,58 +284,50 @@ "tags": [ "SignalR" ], - "description": "Create or update a custom certificate.", - "operationId": "SignalRCustomCertificates_CreateOrUpdate", - "consumes": [ - "application/json", - "text/json" - ], + "description": "Create or update a resource.", + "operationId": "SignalR_CreateOrUpdate", "produces": [ "application/json" ], "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" + "in": "body", + "name": "parameters", + "description": "Parameters for the create or update operation", + "required": true, + "schema": { + "$ref": "#/definitions/SignalRResource" + } }, { - "$ref": "#/parameters/ResourceName" + "$ref": "#/parameters/ApiVersionParameter" }, { - "in": "path", - "name": "certificateName", - "description": "Custom certificate name", - "required": true, - "type": "string" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { - "in": "body", - "name": "body", - "description": "", - "required": true, - "schema": { - "$ref": "#/definitions/CustomCertificate" - } + "$ref": "#/parameters/ResourceName" } ], "responses": { "200": { - "description": "Success. The response describes the certificate.", + "description": "Success. The response describes a resource.", "schema": { - "$ref": "#/definitions/CustomCertificate" + "$ref": "#/definitions/SignalRResource" } }, "201": { - "description": "Created. The response describes the certificate.", + "description": "Created. The response describes the new resource and contains a Location header to query the operation result.", "schema": { - "$ref": "#/definitions/CustomCertificate" + "$ref": "#/definitions/SignalRResource" } }, + "202": { + "description": "Accepted. The response indicates the exiting resource is now updating and contains a Location header to query the operation result.." + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -355,8 +337,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalRCustomCertificates_CreateOrUpdate": { - "$ref": "./examples/SignalRCustomCertificates_CreateOrUpdate.json" + "SignalR_CreateOrUpdate": { + "$ref": "./examples/SignalR_CreateOrUpdate.json" } } }, @@ -364,9 +346,12 @@ "tags": [ "SignalR" ], - "description": "Delete a custom certificate.", - "operationId": "SignalRCustomCertificates_Delete", + "description": "Operation to delete a resource.", + "operationId": "SignalR_Delete", "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, { "$ref": "#/parameters/SubscriptionIdParameter" }, @@ -375,24 +360,73 @@ }, { "$ref": "#/parameters/ResourceName" + } + ], + "responses": { + "200": { + "description": "Success. The response indicates the resource is already deleted." + }, + "202": { + "description": "Accepted. The response indicates the delete operation is performed in the background." }, + "204": { + "description": "Success. The response indicates the resource is already deleted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "SignalR_Delete": { + "$ref": "./examples/SignalR_Delete.json" + } + } + }, + "patch": { + "tags": [ + "SignalR" + ], + "description": "Operation to update an exiting resource.", + "operationId": "SignalR_Update", + "produces": [ + "application/json" + ], + "parameters": [ { - "in": "path", - "name": "certificateName", - "description": "Custom certificate name", + "in": "body", + "name": "parameters", + "description": "Parameters for the update operation", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/SignalRResource" + } }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ResourceName" } ], "responses": { "200": { - "description": "Success." + "description": "Success. The response describes a resource.", + "schema": { + "$ref": "#/definitions/SignalRResource" + } }, - "204": { - "description": "Success." + "202": { + "description": "Accepted. The response indicates the exiting resource is now updating and contains a Location header to query the operation result.." }, "default": { "description": "Error response describing why the operation failed.", @@ -401,20 +435,21 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalRCustomCertificates_Delete": { - "$ref": "./examples/SignalRCustomCertificates_Delete.json" + "SignalR_Update": { + "$ref": "./examples/SignalR_Update.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates": { "get": { "tags": [ "SignalR" ], - "description": "List all custom domains.", - "operationId": "SignalRCustomDomains_List", + "description": "List all custom certificates.", + "operationId": "SignalRCustomCertificates_List", "produces": [ "application/json" ], @@ -434,9 +469,9 @@ ], "responses": { "200": { - "description": "Success. The response describes custom domains of the resource.", + "description": "Success. The response describes custom certificates of the resource.", "schema": { - "$ref": "#/definitions/CustomDomainList" + "$ref": "#/definitions/CustomCertificateList" } }, "default": { @@ -450,19 +485,19 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "SignalRCustomDomains_List": { - "$ref": "./examples/SignalRCustomDomains_List.json" + "SignalRCustomCertificates_List": { + "$ref": "./examples/SignalRCustomCertificates_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{domainName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}": { "get": { "tags": [ "SignalR" ], - "description": "Get a custom domain.", - "operationId": "SignalRCustomDomains_Get", + "description": "Get a custom certificate.", + "operationId": "SignalRCustomCertificates_Get", "produces": [ "application/json" ], @@ -478,8 +513,8 @@ }, { "in": "path", - "name": "domainName", - "description": "The domain name.", + "name": "certificateName", + "description": "Custom certificate name", "required": true, "type": "string" }, @@ -489,9 +524,9 @@ ], "responses": { "200": { - "description": "Success. The response describe the corresponding custom domain.", + "description": "Success. The response describe the corresponding custom certificate.", "schema": { - "$ref": "#/definitions/CustomDomain" + "$ref": "#/definitions/CustomCertificate" } }, "default": { @@ -502,8 +537,8 @@ } }, "x-ms-examples": { - "SignalRCustomDomains_Get": { - "$ref": "./examples/SignalRCustomDomains_Get.json" + "SignalRCustomCertificates_Get": { + "$ref": "./examples/SignalRCustomCertificates_Get.json" } } }, @@ -511,8 +546,8 @@ "tags": [ "SignalR" ], - "description": "Create or update a custom domain.", - "operationId": "SignalRCustomDomains_CreateOrUpdate", + "description": "Create or update a custom certificate.", + "operationId": "SignalRCustomCertificates_CreateOrUpdate", "consumes": [ "application/json", "text/json" @@ -532,8 +567,8 @@ }, { "in": "path", - "name": "domainName", - "description": "The domain name.", + "name": "certificateName", + "description": "Custom certificate name", "required": true, "type": "string" }, @@ -542,19 +577,25 @@ }, { "in": "body", - "name": "body", + "name": "parameters", "description": "", "required": true, "schema": { - "$ref": "#/definitions/CustomDomain" + "$ref": "#/definitions/CustomCertificate" } } ], "responses": { + "200": { + "description": "Success. The response describes the certificate.", + "schema": { + "$ref": "#/definitions/CustomCertificate" + } + }, "201": { - "description": "Created. The response describes the custom domain and contains a Location header to query the operation result.", + "description": "Created. The response describes the certificate.", "schema": { - "$ref": "#/definitions/CustomDomain" + "$ref": "#/definitions/CustomCertificate" } }, "default": { @@ -566,8 +607,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalRCustomDomains_CreateOrUpdate": { - "$ref": "./examples/SignalRCustomDomains_CreateOrUpdate.json" + "SignalRCustomCertificates_CreateOrUpdate": { + "$ref": "./examples/SignalRCustomCertificates_CreateOrUpdate.json" } } }, @@ -575,8 +616,8 @@ "tags": [ "SignalR" ], - "description": "Delete a custom domain.", - "operationId": "SignalRCustomDomains_Delete", + "description": "Delete a custom certificate.", + "operationId": "SignalRCustomCertificates_Delete", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -589,8 +630,8 @@ }, { "in": "path", - "name": "domainName", - "description": "The domain name.", + "name": "certificateName", + "description": "Custom certificate name", "required": true, "type": "string" }, @@ -600,13 +641,10 @@ ], "responses": { "200": { - "description": "Success. The response indicates the custom domain is deleted." - }, - "202": { - "description": "Accepted. The response indicates the operation is performed in the background." + "description": "Success." }, "204": { - "description": "Success. The response indicates the custom domain is deleted." + "description": "Success." }, "default": { "description": "Error response describing why the operation failed.", @@ -615,40 +653,42 @@ } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalRCustomDomains_Delete": { - "$ref": "./examples/SignalRCustomDomains_Delete.json" + "SignalRCustomCertificates_Delete": { + "$ref": "./examples/SignalRCustomCertificates_Delete.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains": { "get": { "tags": [ "SignalR" ], - "description": "Handles requests to list all resources in a resource group.", - "operationId": "SignalR_ListByResourceGroup", + "description": "List all custom domains.", + "operationId": "SignalRCustomDomains_List", "produces": [ "application/json" ], "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ResourceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success. The response describes the list of resources in a resourceGroup.", + "description": "Success. The response describes custom domains of the resource.", "schema": { - "$ref": "#/definitions/SignalRResourceList" + "$ref": "#/definitions/CustomDomainList" } }, "default": { @@ -662,26 +702,23 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "SignalR_ListByResourceGroup": { - "$ref": "./examples/SignalR_ListByResourceGroup.json" + "SignalRCustomDomains_List": { + "$ref": "./examples/SignalRCustomDomains_List.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}": { "get": { "tags": [ "SignalR" ], - "description": "Get the resource and its properties.", - "operationId": "SignalR_Get", + "description": "Get a custom domain.", + "operationId": "SignalRCustomDomains_Get", "produces": [ "application/json" ], "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "$ref": "#/parameters/SubscriptionIdParameter" }, @@ -690,13 +727,23 @@ }, { "$ref": "#/parameters/ResourceName" + }, + { + "in": "path", + "name": "name", + "description": "Custom domain name.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success. The response describes the corresponding resource.", + "description": "Success. The response describe the corresponding custom domain.", "schema": { - "$ref": "#/definitions/SignalRResource" + "$ref": "#/definitions/CustomDomain" } }, "default": { @@ -707,8 +754,8 @@ } }, "x-ms-examples": { - "SignalR_Get": { - "$ref": "./examples/SignalR_Get.json" + "SignalRCustomDomains_Get": { + "$ref": "./examples/SignalRCustomDomains_Get.json" } } }, @@ -716,50 +763,52 @@ "tags": [ "SignalR" ], - "description": "Create or update a resource.", - "operationId": "SignalR_CreateOrUpdate", + "description": "Create or update a custom domain.", + "operationId": "SignalRCustomDomains_CreateOrUpdate", + "consumes": [ + "application/json", + "text/json" + ], "produces": [ "application/json" ], "parameters": [ { - "in": "body", - "name": "parameters", - "description": "Parameters for the create or update operation", - "required": true, - "schema": { - "$ref": "#/definitions/SignalRResource" - } + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/ResourceName" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "in": "path", + "name": "name", + "description": "Custom domain name.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/ResourceName" + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "", + "required": true, + "schema": { + "$ref": "#/definitions/CustomDomain" + } } ], "responses": { - "200": { - "description": "Success. The response describes a resource.", - "schema": { - "$ref": "#/definitions/SignalRResource" - } - }, "201": { - "description": "Created. The response describes the new resource and contains a Location header to query the operation result.", + "description": "Created. The response describes the custom domain and contains a Location header to query the operation result.", "schema": { - "$ref": "#/definitions/SignalRResource" + "$ref": "#/definitions/CustomDomain" } }, - "202": { - "description": "Accepted. The response indicates the exiting resource is now updating and contains a Location header to query the operation result.." - }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -769,8 +818,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalR_CreateOrUpdate": { - "$ref": "./examples/SignalR_CreateOrUpdate.json" + "SignalRCustomDomains_CreateOrUpdate": { + "$ref": "./examples/SignalRCustomDomains_CreateOrUpdate.json" } } }, @@ -778,12 +827,9 @@ "tags": [ "SignalR" ], - "description": "Operation to delete a resource.", - "operationId": "SignalR_Delete", + "description": "Delete a custom domain.", + "operationId": "SignalRCustomDomains_Delete", "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "$ref": "#/parameters/SubscriptionIdParameter" }, @@ -792,73 +838,27 @@ }, { "$ref": "#/parameters/ResourceName" - } - ], - "responses": { - "200": { - "description": "Success. The response indicates the resource is already deleted." - }, - "202": { - "description": "Accepted. The response indicates the delete operation is performed in the background." }, - "204": { - "description": "Success. The response indicates the resource is already deleted." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "SignalR_Delete": { - "$ref": "./examples/SignalR_Delete.json" - } - } - }, - "patch": { - "tags": [ - "SignalR" - ], - "description": "Operation to update an exiting resource.", - "operationId": "SignalR_Update", - "produces": [ - "application/json" - ], - "parameters": [ { - "in": "body", - "name": "parameters", - "description": "Parameters for the update operation", + "in": "path", + "name": "name", + "description": "Custom domain name.", "required": true, - "schema": { - "$ref": "#/definitions/SignalRResource" - } + "type": "string" }, { "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ResourceName" } ], "responses": { "200": { - "description": "Success. The response describes a resource.", - "schema": { - "$ref": "#/definitions/SignalRResource" - } + "description": "Success. The response indicates the custom domain is deleted." }, "202": { - "description": "Accepted. The response indicates the exiting resource is now updating and contains a Location header to query the operation result.." + "description": "Accepted. The response indicates the operation is performed in the background." + }, + "204": { + "description": "Success. The response indicates the custom domain is deleted." }, "default": { "description": "Error response describing why the operation failed.", @@ -869,8 +869,8 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "SignalR_Update": { - "$ref": "./examples/SignalR_Update.json" + "SignalRCustomDomains_Delete": { + "$ref": "./examples/SignalRCustomDomains_Delete.json" } } } @@ -1679,7 +1679,8 @@ "CustomDomainProperties": { "description": "Properties of a custom domain.", "required": [ - "certificateName" + "customCertificate", + "domainName" ], "type": "object", "properties": { @@ -1687,9 +1688,12 @@ "readOnly": true, "$ref": "#/definitions/ProvisioningState" }, - "certificateName": { - "description": "Name of the certificate used for this domain.", + "domainName": { + "description": "The custom domain name.", "type": "string" + }, + "customCertificate": { + "$ref": "#/definitions/ResourceReference" } } }, @@ -2287,6 +2291,16 @@ } } }, + "ResourceReference": { + "description": "Reference to a resource.", + "type": "object", + "properties": { + "id": { + "description": "Resource ID.", + "type": "string" + } + } + }, "ResourceSku": { "description": "The billing information of the resource.", "required": [