Skip to content

Commit 66d4a86

Browse files
kevxmsharryli0108
authored andcommitted
rename cleaup policy type from 'Compaction' to 'Compact' (Azure#24056)
'Compact' is already implemented in the resource provider and is consistent with using verb such as type 'Delete'
1 parent 676821e commit 66d4a86

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
"description": "Enumerates the possible values for cleanup policy",
275275
"enum": [
276276
"Delete",
277-
"Compaction"
277+
"Compact"
278278
],
279279
"x-ms-enum": {
280280
"name": "CleanupPolicyRetentionDescription",
@@ -284,12 +284,12 @@
284284
"retentionTimeInHours": {
285285
"format": "int64",
286286
"type": "integer",
287-
"description": "Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue "
287+
"description": "Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue "
288288
},
289289
"tombstoneRetentionTimeInHours": {
290290
"format": "int32",
291291
"type": "integer",
292-
"description": "Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub"
292+
"description": "Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub"
293293
}
294294
},
295295
"description": "Properties to configure retention settings for the eventhub"

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubCreate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626
},
2727
"retentionDescription": {
28-
"cleanupPolicy": "Compaction",
28+
"cleanupPolicy": "Compact",
2929
"retentionTimeInHours": 96,
3030
"tombstoneRetentionTimeInHours": 1
3131
}
@@ -65,7 +65,7 @@
6565
"sizeLimitInBytes": 10485763
6666
},
6767
"retentionDescription": {
68-
"cleanupPolicy": "Compaction",
68+
"cleanupPolicy": "Compact",
6969
"retentionTimeInHours": 96,
7070
"tombstoneRetentionTimeInHours": 1
7171
}

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubGet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"sizeLimitInBytes": 10485763
4040
},
4141
"retentionDescription": {
42-
"cleanupPolicy": "Compaction",
42+
"cleanupPolicy": "Compact",
4343
"retentionTimeInHours": 96,
4444
"tombstoneRetentionTimeInHours": 1
4545
}

0 commit comments

Comments
 (0)