Skip to content

Commit

Permalink
Dev powerbidedicated microsoft.power b idedicated 2021 01 01 (Azure#1…
Browse files Browse the repository at this point in the history
…6840)

* 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
  • Loading branch information
cfurmanczyk authored Jan 6, 2022
1 parent c00793a commit acde205
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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."
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,11 @@
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List operations": {
"$ref": "./examples/operations.json"
}
}
}
},
Expand Down Expand Up @@ -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"
}
}
}
Expand Down Expand Up @@ -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": [
Expand All @@ -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
}
}
},
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit acde205

Please sign in to comment.