From 7d399870b72ce0f501425f6f4c9da4c6726885fc Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Fri, 16 Jul 2021 10:20:38 -0700 Subject: [PATCH] removing min/max, adding maxMessageSizeInKilobytes to queues and topics --- .../preview/2021-06-01-preview/eventhubs.json | 4 ---- .../preview/2021-06-01-preview/namespaces-preview.json | 2 -- .../preview/2021-06-01-preview/Queue.json | 7 ++++++- .../preview/2021-06-01-preview/Rules.json | 3 --- .../2021-06-01-preview/examples/Queues/SBQueueCreate.json | 1 + .../2021-06-01-preview/examples/Queues/SBQueueGet.json | 1 + .../examples/Queues/SBQueueListByNameSpace.json | 1 + .../2021-06-01-preview/examples/Topics/SBTopicCreate.json | 1 + .../2021-06-01-preview/examples/Topics/SBTopicGet.json | 1 + .../examples/Topics/SBTopicListByNameSpace.json | 1 + .../preview/2021-06-01-preview/topics.json | 7 ++++++- 11 files changed, 18 insertions(+), 11 deletions(-) diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/eventhubs.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/eventhubs.json index 7358d881becb..90edcc77bfb7 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/eventhubs.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/eventhubs.json @@ -248,15 +248,11 @@ "intervalInSeconds": { "format": "int32", "type": "integer", - "maximum": 900, - "minimum": 60, "description": "The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds" }, "sizeLimitInBytes": { "format": "int32", "type": "integer", - "maximum": 524288000, - "minimum": 10485760, "description": "The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes" }, "destination": { diff --git a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/namespaces-preview.json b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/namespaces-preview.json index 3974547f8d99..ece105c08ec6 100644 --- a/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/namespaces-preview.json +++ b/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2021-06-01-preview/namespaces-preview.json @@ -652,8 +652,6 @@ "maximumThroughputUnits": { "format": "int32", "type": "integer", - "maximum": 20, - "minimum": 0, "description": "Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)" }, "kafkaEnabled": { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Queue.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Queue.json index 6b30992ffc75..4f592466fedf 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Queue.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Queue.json @@ -318,10 +318,15 @@ "description": "ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute." }, "maxSizeInMegabytes": { - "format": "int32", + "format": "int64", "type": "integer", "description": "The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024." }, + "maxMessageSizeInKilobytes": { + "format": "int64", + "type": "integer", + "description": "Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024." + }, "requiresDuplicateDetection": { "type": "boolean", "description": "A value indicating if this queue requires duplicate detection." diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Rules.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Rules.json index b24e1620625f..52e44d10aedd 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Rules.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/Rules.json @@ -336,9 +336,6 @@ "compatibilityLevel": { "format": "int32", "type": "integer", - "default": 20, - "minimum": 20, - "maximum": 20, "description": "This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20." }, "requiresPreprocessing": { diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueCreate.json index 68c5bc5841c5..00faa906d1cc 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueCreate.json @@ -20,6 +20,7 @@ "properties": { "lockDuration": "PT1M", "maxSizeInMegabytes": 163840, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "requiresSession": false, "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueGet.json index 16c9d13131e1..984fa426bfca 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueGet.json @@ -15,6 +15,7 @@ "properties": { "lockDuration": "PT1M", "maxSizeInMegabytes": 163840, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "requiresSession": false, "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueListByNameSpace.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueListByNameSpace.json index df09623dada9..18e6c0f8c0b3 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueListByNameSpace.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Queues/SBQueueListByNameSpace.json @@ -16,6 +16,7 @@ "properties": { "lockDuration": "PT1M", "maxSizeInMegabytes": 163840, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "requiresSession": false, "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicCreate.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicCreate.json index eaf146762b9f..955a26ad68fb 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicCreate.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicCreate.json @@ -20,6 +20,7 @@ "properties": { "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", "maxSizeInMegabytes": 10240, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "duplicateDetectionHistoryTimeWindow": "PT10M", "enableBatchedOperations": true, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicGet.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicGet.json index 89761254c4d0..e85417f9d888 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicGet.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicGet.json @@ -15,6 +15,7 @@ "properties": { "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", "maxSizeInMegabytes": 10240, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "duplicateDetectionHistoryTimeWindow": "PT10M", "enableBatchedOperations": true, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicListByNameSpace.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicListByNameSpace.json index e7f87c8e5b1c..a57a6247709d 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicListByNameSpace.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/examples/Topics/SBTopicListByNameSpace.json @@ -16,6 +16,7 @@ "properties": { "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", "maxSizeInMegabytes": 10240, + "maxMessageSizeInKilobytes": 10240, "requiresDuplicateDetection": false, "duplicateDetectionHistoryTimeWindow": "PT10M", "enableBatchedOperations": true, diff --git a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/topics.json b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/topics.json index a7f02c76975f..ca78060eaafb 100644 --- a/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/topics.json +++ b/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2021-06-01-preview/topics.json @@ -318,10 +318,15 @@ "description": "ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself." }, "maxSizeInMegabytes": { - "format": "int32", + "format": "int64", "type": "integer", "description": "Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024." }, + "maxMessageSizeInKilobytes": { + "format": "int64", + "type": "integer", + "description": "Maximum size (in KB) of the message payload that can be accepted by the topic. This property is only used in Premium today and default is 1024." + }, "requiresDuplicateDetection": { "type": "boolean", "description": "Value indicating if this topic requires duplicate detection."