From 66d4a86eeee6b12506d6e943c5eeed57f2327dfe Mon Sep 17 00:00:00 2001 From: kevxms <126736350+kevxms@users.noreply.github.com> Date: Sun, 4 Jun 2023 23:37:07 -0700 Subject: [PATCH] rename cleaup policy type from 'Compaction' to 'Compact' (#24056) 'Compact' is already implemented in the resource provider and is consistent with using verb such as type 'Delete' --- .../preview/2022-10-01-preview/eventhubs.json | 6 +++--- .../examples/EventHubs/EHEventHubCreate.json | 4 ++-- .../examples/EventHubs/EHEventHubGet.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json index 1f2cfcc823f2..858c92d077b9 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json @@ -274,7 +274,7 @@ "description": "Enumerates the possible values for cleanup policy", "enum": [ "Delete", - "Compaction" + "Compact" ], "x-ms-enum": { "name": "CleanupPolicyRetentionDescription", @@ -284,12 +284,12 @@ "retentionTimeInHours": { "format": "int64", "type": "integer", - "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 " + "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 " }, "tombstoneRetentionTimeInHours": { "format": "int32", "type": "integer", - "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" + "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" } }, "description": "Properties to configure retention settings for the eventhub" diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubCreate.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubCreate.json index d68b36244b0e..d0c3807e56db 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubCreate.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubCreate.json @@ -25,7 +25,7 @@ } }, "retentionDescription": { - "cleanupPolicy": "Compaction", + "cleanupPolicy": "Compact", "retentionTimeInHours": 96, "tombstoneRetentionTimeInHours": 1 } @@ -65,7 +65,7 @@ "sizeLimitInBytes": 10485763 }, "retentionDescription": { - "cleanupPolicy": "Compaction", + "cleanupPolicy": "Compact", "retentionTimeInHours": 96, "tombstoneRetentionTimeInHours": 1 } diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubGet.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubGet.json index b16d3729207c..e70eba191464 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubGet.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/examples/EventHubs/EHEventHubGet.json @@ -39,7 +39,7 @@ "sizeLimitInBytes": 10485763 }, "retentionDescription": { - "cleanupPolicy": "Compaction", + "cleanupPolicy": "Compact", "retentionTimeInHours": 96, "tombstoneRetentionTimeInHours": 1 }