diff --git a/CODEOWNERS b/CODEOWNERS index 83fb557ed364..84bbc8e87614 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -49,6 +49,7 @@ /specification/operationsmanagement/ @dashimi16 /specification/policyinsights/ @bulentelmaci /specification/postgresql/ @qingqingyuan +/specification/powerbidedicated/ @tarostok /specification/provisioningservices/ @kvish /specification/recoveryservices/ @dragonfly91 @sonathan /specification/recoveryservicesbackup/ @dheerendrarathor diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/examples/checkNameAvailability.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/examples/checkNameAvailability.json new file mode 100644 index 000000000000..091912186b27 --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/examples/checkNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "location": "West US", + "capacityParameters": { + "name": "azsdktest", + "type": "Microsoft.PowerBIDedicated/capacities" + }, + "api-version": "2017-10-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "nameAvailable": true + } + } + } +} \ No newline at end of file diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json index 22d8c4e78376..d420b5557d8a 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2017-10-01/powerbidedicated.json @@ -37,7 +37,7 @@ "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBIDedicated/capacities/{dedicatedCapacityName}": { "get": { - "description": "Gets details about the specified dedicated capacity.", + "description": "Gets details about the specified dedicated capacity.", "x-ms-examples": { "Get details of a capacity": { "$ref": "./examples/getCapacity.json" } }, @@ -73,7 +73,7 @@ }, "put": { "description": "Provisions the specified Dedicated capacity based on the configuration specified in the request.", - "x-ms-examples": { + "x-ms-examples": { "Create capacity": { "$ref": "./examples/createCapacity.json" } }, "tags": [ "Capacities" ], @@ -121,7 +121,7 @@ }, "delete": { "description": "Deletes the specified Dedicated capacity.", - "x-ms-examples": { + "x-ms-examples": { "Get details of a capacity": { "$ref": "./examples/deleteCapacity.json" } }, "tags": [ "Capacities" ], @@ -435,8 +435,53 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/locations/{location}/checkNameAvailability": { + "post": { + "x-ms-examples": { + "Check name availability of a capacity": { "$ref": "./examples/checkNameAvailability.json" } + }, + "tags": [ + "Capacities" + ], + "operationId": "Capacities_CheckNameAvailability", + "description": "Check the name availability in the target location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The region name which the operation will lookup into." + }, + { + "name": "capacityParameters", + "in": "body", + "required": true, + "schema": + { + "$ref": "#/definitions/CheckCapacityNameAvailabilityParameters" + }, + "description": "The name of the capacity." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckCapacityNameAvailabilityResult" + } + } + } } - }, + } + }, "definitions": { "OperationListResult": { "description": "Result listing capacities. It contains a list of operations and a URL link to get the next set of results.", @@ -713,7 +758,7 @@ } } }, - "ErrorResponse": { + "ErrorResponse": { "description": "Describes the format of Error response.", "type": "object", "properties": { @@ -726,6 +771,42 @@ "type": "string" } } + }, + "CheckCapacityNameAvailabilityParameters": { + "description": "Details of capacity name request body.", + "type": "object", + "properties": { + "name": { + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, + "description": "Name for checking availability." + }, + "type": { + "type": "string", + "default": "Microsoft.PowerBIDedicated/capacities", + "description": "The resource type of powerbi dedicated." + } + } + }, + "CheckCapacityNameAvailabilityResult": { + "description": "The checking result of capacity name availibility.", + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Indicator of availablity of the capacity name." + }, + "reason": { + "type": "string", + "description": "The reason of unavailability." + }, + "message": { + "type": "string", + "description": "The detailed message of the request unavailability." + } + } } }, "parameters": {