Skip to content

Commit 36bfb8c

Browse files
authored
Fix ServiceBus property reordering in Swagger transformation (Azure#40333)
Fix ServiceBus property reordering in Swagger transformation
1 parent 85d9988 commit 36bfb8c

File tree

4 files changed

+128
-87
lines changed

4 files changed

+128
-87
lines changed

sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/administration/implementation/models/QueueDescriptionImpl.java

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
3030
= "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect";
3131

3232
/*
33-
* 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.
33+
* ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other
34+
* receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
3435
*/
3536
private Duration lockDuration;
3637

@@ -50,7 +51,9 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
5051
private Boolean requiresSession;
5152

5253
/*
53-
* 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.
54+
* ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting
55+
* from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a
56+
* message itself.
5457
*/
5558
private Duration defaultMessageTimeToLive;
5659

@@ -60,12 +63,14 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
6063
private Boolean deadLetteringOnMessageExpiration;
6164

6265
/*
63-
* ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
66+
* ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10
67+
* minutes.
6468
*/
6569
private Duration duplicateDetectionHistoryTimeWindow;
6670

6771
/*
68-
* The maximum delivery count. A message is automatically deadlettered after this number of deliveries. Default value is 10.
72+
* The maximum delivery count. A message is automatically deadlettered after this number of deliveries. Default
73+
* value is 10.
6974
*/
7075
private Integer maxDeliveryCount;
7176

@@ -125,7 +130,8 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
125130
private OffsetDateTime accessedAt;
126131

127132
/*
128-
* Indicates if messages are received in the same order they are sent. For queues, defaults to true and setting it to false has no effect.
133+
* Indicates if messages are received in the same order they are sent. For queues, defaults to true and setting it
134+
* to false has no effect.
129135
*/
130136
private Boolean supportOrdering;
131137

@@ -135,7 +141,8 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
135141
private MessageCountDetailsImpl messageCountDetails;
136142

137143
/*
138-
* ISO 8601 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
144+
* ISO 8601 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5
145+
* minutes.
139146
*/
140147
private Duration autoDeleteOnIdle;
141148

@@ -155,7 +162,8 @@ public final class QueueDescriptionImpl implements XmlSerializable<QueueDescript
155162
private String forwardDeadLetteredMessagesTo;
156163

157164
/*
158-
* A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.
165+
* A value that indicates whether Express Entities are enabled. An express queue holds a message in memory
166+
* temporarily before writing it to persistent storage.
159167
*/
160168
private Boolean enableExpress;
161169

0 commit comments

Comments
 (0)