From acde205f426c17f4c1c7426307aa895b55d02ee9 Mon Sep 17 00:00:00 2001 From: cfurmanczyk <89105175+cfurmanczyk@users.noreply.github.com> Date: Wed, 5 Jan 2022 18:54:46 -0800 Subject: [PATCH] Dev powerbidedicated microsoft.power b idedicated 2021 01 01 (#16840) * Apply PowerBIDedicated correctness fixes to 2021-01-01 * Move PowerBIDedicated properties to new definitions * Keep ErrorResponse inline with documented expectation * Update for ModelValidation failures * cleanup operations example --- .../2021-01-01/examples/operations.json | 24 ++++ .../2021-01-01/examples/updateCapacity.json | 5 +- .../2021-01-01/examples/updateToGen2.json | 5 +- .../stable/2021-01-01/powerbidedicated.json | 135 ++++++++++++++++++ 4 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/operations.json diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/operations.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/operations.json new file mode 100644 index 000000000000..2bfeff417c5b --- /dev/null +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/operations.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60", + "api-version": "2021-01-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Microsoft.PowerBIDedicated/checkNameAvailability/action", + "display": { + "provider": "Microsoft.PowerBIDedicated", + "resource": "checkNameAvailability", + "operation": "Capacities_CheckNameAvailability", + "description": "Checks that given Power BI Dedicated Capacity name is valid and not in use." + } + } + ] + } + } + } +} diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json index daaf221c3a8d..9da54157b9ca 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json @@ -57,7 +57,10 @@ } }, "202": { - "headers": {}, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/locations/westus/operationstatuses/7e4f488e-f071-4b1a-ae84-e25682d09e4c?api-version=2021-01-01", + "Location": "https://management.azure.com/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/locations/westus/operationresults/7e4f488e-f071-4b1a-ae84-e25682d09e4c?api-version=2021-01-01" + }, "body": { "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", "location": "West US", diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateToGen2.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateToGen2.json index a1ab3ae18b2b..50a68dbad4d1 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateToGen2.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateToGen2.json @@ -53,7 +53,10 @@ } }, "202": { - "headers": {}, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/locations/westus/operationstatuses/7e4f488e-f071-4b1a-ae84-e25682d09e4c?api-version=2021-01-01", + "Location": "https://management.azure.com/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/providers/Microsoft.PowerBIDedicated/locations/westus/operationresults/7e4f488e-f071-4b1a-ae84-e25682d09e4c?api-version=2021-01-01" + }, "body": { "id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest", "location": "West US", diff --git a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json index b67f94ee343c..56f0049b4da0 100644 --- a/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json +++ b/specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json @@ -557,6 +557,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List operations": { + "$ref": "./examples/operations.json" + } } } }, @@ -658,6 +663,25 @@ "description": "Operation type: create, update, delete, etc.", "type": "string", "readOnly": true + }, + "description": { + "type": "string", + "description": "Localized description of the operation." + } + } + }, + "origin": { + "type": "string", + "description": "Origin of the operation.", + "readOnly": true + }, + "properties": { + "type": "object", + "description": "Additional properties to expose performance metrics to shoebox.", + "properties": { + "serviceSpecification": { + "description": "Service specification for exposing performance metrics to shoebox.", + "$ref": "#/definitions/ServiceSpecification" } } } @@ -845,6 +869,11 @@ "modelAsString": true }, "description": "The name of the Azure pricing tier to which the SKU applies." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "The capacity of the SKU." } }, "required": [ @@ -870,6 +899,16 @@ "name": "Mode", "modelAsString": true } + }, + "tenantId": { + "type": "string", + "description": "Tenant ID for the capacity. Used for creating Pro Plus capacity.", + "readOnly": true + }, + "friendlyName": { + "type": "string", + "description": "Capacity name", + "readOnly": true } } }, @@ -917,6 +956,10 @@ "description": "An object that represents SKU details for existing resources", "type": "object", "properties": { + "resourceType": { + "type": "string", + "description": "The resource type" + }, "sku": { "$ref": "#/definitions/CapacitySku", "description": "The SKU in SKU details for existing resources." @@ -978,6 +1021,98 @@ } } }, + "ServiceSpecification": { + "type": "object", + "description": "Service specification for exposing performance metrics to shoebox.", + "properties": { + "metricSpecifications": { + "type": "array", + "description": "Metric specifications for exposing performance metrics to shoebox.", + "items": { + "$ref": "#/definitions/MetricSpecification" + } + }, + "logSpecifications": { + "type": "array", + "description": "Log specifications for exposing diagnostic logs to shoebox.", + "items": { + "$ref": "#/definitions/LogSpecification" + } + } + } + }, + "MetricSpecification": { + "type": "object", + "description": "Metric specification for exposing performance metrics to shoebox.", + "properties": { + "name": { + "type": "string", + "description": "Metric name", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Localizable metric name" + }, + "displayDescription": { + "type": "string", + "description": "Localizable description of metric" + }, + "unit": { + "type": "string", + "description": "Unit for the metric", + "readOnly": true + }, + "aggregationType": { + "type": "string", + "description": "Aggregation type for the metric", + "readOnly": true + }, + "metricFilterPattern": { + "type": "string", + "description": "Pattern used to filter the metric", + "readOnly": true + }, + "dimensions": { + "type": "array", + "description": "For describing multi dimensional metrics", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Dimension of the metric", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Localizable dimension of the metric" + } + } + } + } + } + }, + "LogSpecification": { + "description": "Log specification for exposing diagnostic logs to shoebox.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the log", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Localizable name of the log" + }, + "blobDuration": { + "type": "string", + "description": "Blob duration for the log", + "readOnly": true + } + } + }, "SystemData": { "description": "Metadata pertaining to creation and last modification of the resource.", "type": "object",