Skip to content

Commit d54b441

Browse files
jonathan-innisFredericHeem
authored andcommitted
Add 200 response to extension patch (Azure#19038)
1 parent 17610b4 commit d54b441

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/preview/2022-04-02-preview/examples/PatchExtension.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@
2222
}
2323
},
2424
"responses": {
25+
"200": {
26+
"description": "Extension properties from not updating any property values.",
27+
"body": {
28+
"properties": {
29+
"extensionType": "azuremonitor-containers",
30+
"autoUpgradeMinorVersion": true,
31+
"releaseTrain": "Preview",
32+
"version": "0.1.4",
33+
"scope": {
34+
"cluster": {
35+
"releaseNamespace": "kube-system"
36+
}
37+
},
38+
"configurationSettings": {
39+
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
40+
"omsagent.env.clusterName": "clusterName1"
41+
},
42+
"provisioningState": "Succeeded",
43+
"statuses": []
44+
}
45+
}
46+
},
2547
"202": {
2648
"headers": {
2749
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/operationId",

specification/kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/preview/2022-04-02-preview/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@
271271
"$ref": "#/definitions/Extension"
272272
}
273273
},
274+
"200": {
275+
"description": "No update is done to extension so return OK.",
276+
"schema": {
277+
"$ref": "#/definitions/Extension"
278+
}
279+
},
274280
"default": {
275281
"description": "Error response describing why the operation failed.",
276282
"schema": {

0 commit comments

Comments
 (0)