Skip to content

Commit acde205

Browse files
authored
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
1 parent c00793a commit acde205

File tree

4 files changed

+167
-2
lines changed

4 files changed

+167
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60",
4+
"api-version": "2021-01-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"value": [
11+
{
12+
"name": "Microsoft.PowerBIDedicated/checkNameAvailability/action",
13+
"display": {
14+
"provider": "Microsoft.PowerBIDedicated",
15+
"resource": "checkNameAvailability",
16+
"operation": "Capacities_CheckNameAvailability",
17+
"description": "Checks that given Power BI Dedicated Capacity name is valid and not in use."
18+
}
19+
}
20+
]
21+
}
22+
}
23+
}
24+
}

specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateCapacity.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
}
5858
},
5959
"202": {
60-
"headers": {},
60+
"headers": {
61+
"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",
62+
"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"
63+
},
6164
"body": {
6265
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest",
6366
"location": "West US",

specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/examples/updateToGen2.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
}
5454
},
5555
"202": {
56-
"headers": {},
56+
"headers": {
57+
"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",
58+
"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"
59+
},
5760
"body": {
5861
"id": "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.PowerBIDedicated/capacities/azsdktest",
5962
"location": "West US",

specification/powerbidedicated/resource-manager/Microsoft.PowerBIdedicated/stable/2021-01-01/powerbidedicated.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@
557557
},
558558
"x-ms-pageable": {
559559
"nextLinkName": "nextLink"
560+
},
561+
"x-ms-examples": {
562+
"List operations": {
563+
"$ref": "./examples/operations.json"
564+
}
560565
}
561566
}
562567
},
@@ -658,6 +663,25 @@
658663
"description": "Operation type: create, update, delete, etc.",
659664
"type": "string",
660665
"readOnly": true
666+
},
667+
"description": {
668+
"type": "string",
669+
"description": "Localized description of the operation."
670+
}
671+
}
672+
},
673+
"origin": {
674+
"type": "string",
675+
"description": "Origin of the operation.",
676+
"readOnly": true
677+
},
678+
"properties": {
679+
"type": "object",
680+
"description": "Additional properties to expose performance metrics to shoebox.",
681+
"properties": {
682+
"serviceSpecification": {
683+
"description": "Service specification for exposing performance metrics to shoebox.",
684+
"$ref": "#/definitions/ServiceSpecification"
661685
}
662686
}
663687
}
@@ -845,6 +869,11 @@
845869
"modelAsString": true
846870
},
847871
"description": "The name of the Azure pricing tier to which the SKU applies."
872+
},
873+
"capacity": {
874+
"type": "integer",
875+
"format": "int32",
876+
"description": "The capacity of the SKU."
848877
}
849878
},
850879
"required": [
@@ -870,6 +899,16 @@
870899
"name": "Mode",
871900
"modelAsString": true
872901
}
902+
},
903+
"tenantId": {
904+
"type": "string",
905+
"description": "Tenant ID for the capacity. Used for creating Pro Plus capacity.",
906+
"readOnly": true
907+
},
908+
"friendlyName": {
909+
"type": "string",
910+
"description": "Capacity name",
911+
"readOnly": true
873912
}
874913
}
875914
},
@@ -917,6 +956,10 @@
917956
"description": "An object that represents SKU details for existing resources",
918957
"type": "object",
919958
"properties": {
959+
"resourceType": {
960+
"type": "string",
961+
"description": "The resource type"
962+
},
920963
"sku": {
921964
"$ref": "#/definitions/CapacitySku",
922965
"description": "The SKU in SKU details for existing resources."
@@ -978,6 +1021,98 @@
9781021
}
9791022
}
9801023
},
1024+
"ServiceSpecification": {
1025+
"type": "object",
1026+
"description": "Service specification for exposing performance metrics to shoebox.",
1027+
"properties": {
1028+
"metricSpecifications": {
1029+
"type": "array",
1030+
"description": "Metric specifications for exposing performance metrics to shoebox.",
1031+
"items": {
1032+
"$ref": "#/definitions/MetricSpecification"
1033+
}
1034+
},
1035+
"logSpecifications": {
1036+
"type": "array",
1037+
"description": "Log specifications for exposing diagnostic logs to shoebox.",
1038+
"items": {
1039+
"$ref": "#/definitions/LogSpecification"
1040+
}
1041+
}
1042+
}
1043+
},
1044+
"MetricSpecification": {
1045+
"type": "object",
1046+
"description": "Metric specification for exposing performance metrics to shoebox.",
1047+
"properties": {
1048+
"name": {
1049+
"type": "string",
1050+
"description": "Metric name",
1051+
"readOnly": true
1052+
},
1053+
"displayName": {
1054+
"type": "string",
1055+
"description": "Localizable metric name"
1056+
},
1057+
"displayDescription": {
1058+
"type": "string",
1059+
"description": "Localizable description of metric"
1060+
},
1061+
"unit": {
1062+
"type": "string",
1063+
"description": "Unit for the metric",
1064+
"readOnly": true
1065+
},
1066+
"aggregationType": {
1067+
"type": "string",
1068+
"description": "Aggregation type for the metric",
1069+
"readOnly": true
1070+
},
1071+
"metricFilterPattern": {
1072+
"type": "string",
1073+
"description": "Pattern used to filter the metric",
1074+
"readOnly": true
1075+
},
1076+
"dimensions": {
1077+
"type": "array",
1078+
"description": "For describing multi dimensional metrics",
1079+
"items": {
1080+
"type": "object",
1081+
"properties": {
1082+
"name": {
1083+
"type": "string",
1084+
"description": "Dimension of the metric",
1085+
"readOnly": true
1086+
},
1087+
"displayName": {
1088+
"type": "string",
1089+
"description": "Localizable dimension of the metric"
1090+
}
1091+
}
1092+
}
1093+
}
1094+
}
1095+
},
1096+
"LogSpecification": {
1097+
"description": "Log specification for exposing diagnostic logs to shoebox.",
1098+
"type": "object",
1099+
"properties": {
1100+
"name": {
1101+
"type": "string",
1102+
"description": "Name of the log",
1103+
"readOnly": true
1104+
},
1105+
"displayName": {
1106+
"type": "string",
1107+
"description": "Localizable name of the log"
1108+
},
1109+
"blobDuration": {
1110+
"type": "string",
1111+
"description": "Blob duration for the log",
1112+
"readOnly": true
1113+
}
1114+
}
1115+
},
9811116
"SystemData": {
9821117
"description": "Metadata pertaining to creation and last modification of the resource.",
9831118
"type": "object",

0 commit comments

Comments
 (0)