Skip to content

Commit 475e39b

Browse files
authored
updating the response format for OEP DDP APIs (Azure#19304)
1 parent 7168ecd commit 475e39b

File tree

4 files changed

+31
-18
lines changed

4 files changed

+31
-18
lines changed

specification/oep/resource-manager/Microsoft.OpenEnergyPlatform/preview/2022-04-04-preview/examples/EnergyServices_AddPartition_MaximumSet_Gen.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
"resourceName": "a",
66
"api-version": "2022-04-04-preview",
77
"body": {
8-
"name": "aaaaaaaaaaaaaaaaaa"
8+
"name": {
9+
"name": "aaaaaaaaaaaaaaaaaa"
10+
}
911
}
1012
},
1113
"responses": {
12-
"201": {
14+
"202": {
15+
"body": {
16+
"name": {
17+
"name": "aaaaaaaaaaaaaaaaaa"
18+
}
19+
},
1320
"headers": {
1421
"Azure-AsyncOperation": "https://foo.com/operationstatus"
1522
}

specification/oep/resource-manager/Microsoft.OpenEnergyPlatform/preview/2022-04-04-preview/examples/EnergyServices_ListPartitions_MaximumSet_Gen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"responses": {
99
"200": {
1010
"body": {
11-
"value": [
11+
"dataPartitionInfo": [
1212
{
1313
"name": "aaaaaaaaaaa",
1414
"provisioningState": "aaaaaaaaaaaa"

specification/oep/resource-manager/Microsoft.OpenEnergyPlatform/preview/2022-04-04-preview/examples/EnergyServices_RemovePartition_MaximumSet_Gen.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55
"resourceName": "aaaaaaa",
66
"api-version": "2022-04-04-preview",
77
"body": {
8-
"name": "aaaaaaaaaaaaaaaaaa"
8+
"name": {
9+
"name": "aaaaaaaaaaaaaaaaaa"
10+
}
911
}
1012
},
1113
"responses": {
12-
"201": {
14+
"202": {
15+
"body": {
16+
"name": {
17+
"name": "aaaaaaaaaaaaaaaaaa"
18+
}
19+
},
1320
"headers": {
1421
"Azure-AsyncOperation": "https://foo.com/operationstatus"
1522
}

specification/oep/resource-manager/Microsoft.OpenEnergyPlatform/preview/2022-04-04-preview/oep.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,6 @@
337337
"description": "Method that gets called if new partition is to be added in a resource.",
338338
"operationId": "EnergyServices_AddPartition",
339339
"x-ms-long-running-operation": true,
340-
"x-ms-long-running-operation-options": {
341-
"final-state-via": "azure-async-operation"
342-
},
343340
"parameters": [
344341
{
345342
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
@@ -368,8 +365,11 @@
368365
}
369366
],
370367
"responses": {
371-
"201": {
372-
"description": "The data partitions will be created asynchronously"
368+
"202": {
369+
"description": "The data partitions will be created asynchronously",
370+
"schema": {
371+
"$ref": "#/definitions/DataPartitionAddOrRemoveRequest"
372+
}
373373
},
374374
"default": {
375375
"description": "Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated)",
@@ -393,9 +393,6 @@
393393
"description": "Method that gets called if new partition is to be removed from a resource.",
394394
"operationId": "EnergyServices_RemovePartition",
395395
"x-ms-long-running-operation": true,
396-
"x-ms-long-running-operation-options": {
397-
"final-state-via": "azure-async-operation"
398-
},
399396
"parameters": [
400397
{
401398
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
@@ -424,8 +421,11 @@
424421
}
425422
],
426423
"responses": {
427-
"201": {
428-
"description": "The data partitions will be deleted asynchronously"
424+
"202": {
425+
"description": "The data partitions will be deleted asynchronously",
426+
"schema": {
427+
"$ref": "#/definitions/DataPartitionAddOrRemoveRequest"
428+
}
429429
},
430430
"default": {
431431
"description": "Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated)",
@@ -576,8 +576,7 @@
576576
"type": "object",
577577
"properties": {
578578
"name": {
579-
"description": "Name of the data partition",
580-
"type": "string"
579+
"$ref": "#/definitions/DataPartitionNames"
581580
}
582581
}
583582
},
@@ -599,7 +598,7 @@
599598
"type": "object",
600599
"description": "List of data partitions.",
601600
"properties": {
602-
"value": {
601+
"dataPartitionInfo": {
603602
"type": "array",
604603
"description": "List of data partitions along with their properties in a given OEP resource.",
605604
"items": {

0 commit comments

Comments
 (0)