Skip to content

Commit 5e98c3c

Browse files
ravgillmarkcowl
andauthored
[CosmosDB] [AdjustThroughput API] Add 200 responses to the APIs (#18867)
* Add blockchain to latest profile * Add additional types * add 200 responses * fix operationname Co-authored-by: Mark Cowlishaw <[email protected]>
1 parent 30c98b2 commit 5e98c3c

File tree

5 files changed

+156
-1
lines changed

5 files changed

+156
-1
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-02-15-preview/cosmos-db.json

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,12 @@
25202520
"202": {
25212521
"description": "The retrieve throughput distribution for SQL container operation will complete asynchronously."
25222522
},
2523+
"200": {
2524+
"description": "The retrieve throughput distribution for SQL container operation was completed successfully.",
2525+
"schema": {
2526+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResult"
2527+
}
2528+
},
25232529
"default": {
25242530
"description": "Error response describing why the operation failed.",
25252531
"schema": {
@@ -2575,6 +2581,12 @@
25752581
"202": {
25762582
"description": "The redistribution throughput for SQL container operation will complete asynchronously."
25772583
},
2584+
"200": {
2585+
"description": "The redistribution throughput for SQL container operation was completed successfully.",
2586+
"schema": {
2587+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResult"
2588+
}
2589+
},
25782590
"default": {
25792591
"description": "Error response describing why the operation failed.",
25802592
"schema": {
@@ -3461,7 +3473,7 @@
34613473
},
34623474
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/retrieveThroughputDistribution": {
34633475
"post": {
3464-
"operationId": "MongoDBResources_SqlContainerRetrieveThroughputDistribution",
3476+
"operationId": "MongoDBResources_MongoDBContainerRetrieveThroughputDistribution",
34653477
"x-ms-examples": {
34663478
"CosmosDBMongoDBCollectionRetrieveThroughputDistribution": {
34673479
"$ref": "./examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json"
@@ -3505,6 +3517,12 @@
35053517
"202": {
35063518
"description": "The retrieve throughput distribution for MongoDB container operation will complete asynchronously."
35073519
},
3520+
"200": {
3521+
"description": "The retrieve throughput distribution for MongoDB container operation was completed successfully.",
3522+
"schema": {
3523+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResult"
3524+
}
3525+
},
35083526
"default": {
35093527
"description": "Error response describing why the operation failed.",
35103528
"schema": {
@@ -3560,6 +3578,12 @@
35603578
"202": {
35613579
"description": "The redistribution throughput for MongoDB container operation will complete asynchronously."
35623580
},
3581+
"200": {
3582+
"description": "The redistribution throughput for MongoDB container operation was completed successfully.",
3583+
"schema": {
3584+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResult"
3585+
}
3586+
},
35633587
"default": {
35643588
"description": "Error response describing why the operation failed.",
35653589
"schema": {
@@ -8614,6 +8638,49 @@
86148638
"id"
86158639
]
86168640
},
8641+
"PhysicalPartitionThroughputInfoResult": {
8642+
"description": "An Azure Cosmos DB PhysicalPartitionThroughputInfoResult object.",
8643+
"type": "object",
8644+
"properties": {
8645+
"properties": {
8646+
"x-ms-client-flatten": true,
8647+
"description": "The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoResult object",
8648+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResultProperties"
8649+
}
8650+
},
8651+
"allOf": [
8652+
{
8653+
"$ref": "#/definitions/ARMResourceProperties"
8654+
}
8655+
]
8656+
},
8657+
"PhysicalPartitionThroughputInfoResultProperties": {
8658+
"description": "The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoResult object",
8659+
"type": "object",
8660+
"properties": {
8661+
"resource": {
8662+
"description": "properties of physical partition throughput info",
8663+
"allOf": [
8664+
{
8665+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoProperties"
8666+
}
8667+
]
8668+
}
8669+
}
8670+
},
8671+
"PhysicalPartitionThroughputInfoProperties": {
8672+
"description": "The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoProperties object",
8673+
"type": "object",
8674+
"properties": {
8675+
"physicalPartitionThroughputInfo": {
8676+
"type": "array",
8677+
"description": "Array of physical partition throughput info objects",
8678+
"items": {
8679+
"$ref": "#/definitions/PhysicalPartitionThroughputInfoResource"
8680+
}
8681+
}
8682+
}
8683+
},
86178684
"PhysicalPartitionThroughputInfoResource": {
86188685
"type": "object",
86198686
"description": "PhysicalPartitionThroughputInfo object",

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-02-15-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,32 @@
3434
}
3535
},
3636
"responses": {
37+
"200": {
38+
"body": {
39+
"properties": {
40+
"resource": {
41+
"physicalPartitionThroughputInfo": [
42+
{
43+
"id": "0",
44+
"throughput": 5000
45+
},
46+
{
47+
"id": "1",
48+
"throughput": 5000
49+
},
50+
{
51+
"id": "2",
52+
"throughput": 5000
53+
},
54+
{
55+
"id": "3",
56+
"throughput": 3000
57+
}
58+
]
59+
}
60+
}
61+
}
62+
},
3763
"202": {}
3864
}
3965
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-02-15-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
}
2323
},
2424
"responses": {
25+
"200": {
26+
"body": {
27+
"properties": {
28+
"resource": {
29+
"physicalPartitionThroughputInfo": [
30+
{
31+
"id": "0",
32+
"throughput": 5000
33+
},
34+
{
35+
"id": "1",
36+
"throughput": 5000
37+
}
38+
]
39+
}
40+
}
41+
}
42+
},
2543
"202": {}
2644
}
2745
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-02-15-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,32 @@
3434
}
3535
},
3636
"responses": {
37+
"200": {
38+
"body": {
39+
"properties": {
40+
"resource": {
41+
"physicalPartitionThroughputInfo": [
42+
{
43+
"id": "0",
44+
"throughput": 5000
45+
},
46+
{
47+
"id": "1",
48+
"throughput": 5000
49+
},
50+
{
51+
"id": "2",
52+
"throughput": 5000
53+
},
54+
{
55+
"id": "3",
56+
"throughput": 3000
57+
}
58+
]
59+
}
60+
}
61+
}
62+
},
3763
"202": {}
3864
}
3965
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-02-15-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
}
2323
},
2424
"responses": {
25+
"200": {
26+
"body": {
27+
"properties": {
28+
"resource": {
29+
"physicalPartitionThroughputInfo": [
30+
{
31+
"id": "0",
32+
"throughput": 5000
33+
},
34+
{
35+
"id": "1",
36+
"throughput": 5000
37+
}
38+
]
39+
}
40+
}
41+
}
42+
},
2543
"202": {}
2644
}
2745
}

0 commit comments

Comments
 (0)