Skip to content

Commit 6f43368

Browse files
authored
[PostgreSQL] Add 202 as valid response for PUT for Advanced Threat Protection API (#26831)
* Add missing new api version tag for typescript * Add 202 Accepted as valid response for Threat protection API for PostgreSQL flexible server * Update name of file and add missing 202 response in example * Based on our API design structure for our namespace adding lintdiff except for PUT api 2020 response in readme.md file
1 parent 3556bb9 commit 6f43368

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-06-01-preview/ThreatProtection.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@
173173
"schema": {
174174
"$ref": "#/definitions/ServerThreatProtectionSettingsModel"
175175
}
176+
},
177+
"202": {
178+
"description": "Accepted",
179+
"headers": {
180+
"Location": {
181+
"type": "string"
182+
}
183+
}
176184
}
177185
},
178186
"x-ms-long-running-operation": true,
@@ -181,7 +189,7 @@
181189
},
182190
"x-ms-examples": {
183191
"Update a server's Threat Protection settings": {
184-
"$ref": "./examples/ServerThreatProtectionSettingsCreate.json"
192+
"$ref": "./examples/ServerThreatProtectionSettingsCreateOrUpdate.json"
185193
}
186194
}
187195
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"creationTime": "2023-09-03T04:41:33.937Z"
3434
}
3535
}
36-
}
36+
},
37+
"202": {}
3738
}
3839
}

specification/postgresql/resource-manager/readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ suppressions:
7474
- code: ProvisioningStateSpecifiedForLROPut
7575
from: ThreatProtection.json
7676
reason: FlexibleServers namespace is already returning 202 as response for PUT. These APIs are under same namespace and hence keeping it as-is.
77+
- code: PutResponseCodes
78+
from: ThreatProtection.json
79+
reason: FlexibleServers namespace is already returning 202 as response for PUT. These APIs are under same namespace and hence keeping it as-is.
7780
- code: ProvisioningStateSpecifiedForLROPut
7881
from: VirtualEndpoints.json
7982
reason: FlexibleServers namespace is already returning 202 as response for PUT. These APIs are under same namespace and hence keeping it as-is.

0 commit comments

Comments
 (0)