Skip to content

Commit 0b3b061

Browse files
authored
Update description for property eTag (#22230)
* Update description for property eTag * Switch to If-Match header approach
1 parent c1475c5 commit 0b3b061

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/scheduledActions/scheduledAction-createOrUpdate-private.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"parameters": {
33
"api-version": "2022-10-01",
44
"name": "monthlyCostByResource",
5+
"If-Match": "",
56
"scheduledAction": {
67
"kind": "Email",
78
"properties": {

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/scheduledActions/scheduledAction-createOrUpdate-shared.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"api-version": "2022-10-01",
44
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
55
"name": "monthlyCostByResource",
6+
"If-Match": "",
67
"scheduledAction": {
78
"kind": "Email",
89
"properties": {

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/scheduledActions/scheduledAction-insightAlert-createOrUpdate-shared.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"api-version": "2022-10-01",
44
"scope": "subscriptions/00000000-0000-0000-0000-000000000000",
55
"name": "dailyAnomalyByResource",
6+
"If-Match": "",
67
"scheduledAction": {
78
"kind": "InsightAlert",
89
"properties": {

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/scheduledActions.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
"schema": {
162162
"$ref": "#/definitions/ScheduledAction"
163163
}
164+
},
165+
{
166+
"$ref": "#/parameters/IfMatchOptionalParameter"
164167
}
165168
],
166169
"responses": {
@@ -292,6 +295,9 @@
292295
"schema": {
293296
"$ref": "#/definitions/ScheduledAction"
294297
}
298+
},
299+
{
300+
"$ref": "#/parameters/IfMatchOptionalParameter"
295301
}
296302
],
297303
"responses": {
@@ -649,7 +655,7 @@
649655
"eTag": {
650656
"type": "string",
651657
"readOnly": true,
652-
"description": "Resource Etag."
658+
"description": "Resource Etag. For update calls, eTag is mandatory. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required."
653659
},
654660
"kind": {
655661
"$ref": "#/definitions/ScheduledActionKind",
@@ -913,6 +919,13 @@
913919
"required": true,
914920
"type": "string",
915921
"x-ms-parameter-location": "method"
922+
},
923+
"IfMatchOptionalParameter": {
924+
"name": "If-Match",
925+
"in": "header",
926+
"required": false,
927+
"description": "ETag of the Entity. Not required when creating an entity, but required when updating an entity.",
928+
"type": "string"
916929
}
917930
}
918931
}

0 commit comments

Comments
 (0)