Skip to content

Commit 03adb71

Browse files
yenchunchangYen-Chun Chang
andauthored
Updates advisor.Json to improve Documentation for Suppressions_Get operation (#11433)
Co-authored-by: Yen-Chun Chang <yenchunchang@microsoft.com>
1 parent 2f9b76f commit 03adb71

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/advisor.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,12 @@
541541
"schema": {
542542
"$ref": "#/definitions/SuppressionContract"
543543
}
544+
},
545+
"404": {
546+
"description": "Suppression name is not specified or Suppression Id not found.",
547+
"schema": {
548+
"$ref": "#/definitions/ARMErrorResponseBody"
549+
}
544550
}
545551
},
546552
"deprecated": false,
@@ -1189,6 +1195,12 @@
11891195
"ttl": {
11901196
"description": "The duration for which the suppression is valid.",
11911197
"type": "string"
1198+
},
1199+
"expirationTimeStamp": {
1200+
"readOnly": true,
1201+
"format": "date-time",
1202+
"description": "Gets or sets the expiration time stamp.",
1203+
"type": "string"
11921204
}
11931205
}
11941206
},

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/examples/GetSuppressionDetail.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@
1313
"type": "Microsoft.Advisor/suppressions",
1414
"properties": {
1515
"suppressionId": "suppressionId1",
16-
"ttl": "7.00:00:00"
16+
"ttl": "7.00:00:00",
17+
"expirationTimeStamp": "2020-10-25T22:24:43.3216408Z"
1718
}
1819
}
20+
},
21+
"404": {
22+
"body": {
23+
"code": "NotFound",
24+
"message": "Suppression name is not specified or Suppression Id not found"
25+
}
1926
}
2027
}
2128
}

specification/advisor/resource-manager/Microsoft.Advisor/stable/2020-01-01/examples/ListSuppressions.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"type": "Microsoft.Advisor/suppressions",
1515
"properties": {
1616
"suppressionId": "suppressionId1",
17-
"ttl": "7.00:00:00"
17+
"ttl": "7.00:00:00",
18+
"expirationTimeStamp": "2020-10-24T22:24:43.3216408Z"
1819
}
1920
},
2021
{
@@ -23,7 +24,8 @@
2324
"type": "Microsoft.Advisor/suppressions",
2425
"properties": {
2526
"suppressionId": "suppressionId2",
26-
"ttl": "7.00:00:00"
27+
"ttl": "7.00:00:00",
28+
"expirationTimeStamp": "2020-10-25T22:24:43.3216408Z"
2729
}
2830
}
2931
]

0 commit comments

Comments
 (0)