From f7862e7ebed63bed1841b8a0ead9020198be9510 Mon Sep 17 00:00:00 2001 From: jolov Date: Tue, 22 Apr 2025 08:39:52 -0700 Subject: [PATCH] Add visibility read to response collection properties --- .../eventgrid/Azure.Messaging.EventGrid/main.tsp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 58b10263afd3..cb848e87de09 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -110,6 +110,7 @@ namespace Microsoft.EventGrid { @doc("Details of the Receive operation response.") model ReceiveResult { @doc("Array of receive responses, one per cloud event.") + @visibility(Lifecycle.Read) value: ReceiveDetails[]; } @@ -148,36 +149,44 @@ namespace Microsoft.EventGrid { @doc("The result of the Acknowledge operation.") model AcknowledgeResult { @doc("Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).") + @visibility(Lifecycle.Read) failedLockTokens: FailedLockToken[]; @doc("Array of lock tokens for the successfully acknowledged cloud events.") + @visibility(Lifecycle.Read) succeededLockTokens: string[]; } @doc("The result of the Release operation.") model ReleaseResult { @doc("Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).") + @visibility(Lifecycle.Read) failedLockTokens: FailedLockToken[]; @doc("Array of lock tokens for the successfully released cloud events.") + @visibility(Lifecycle.Read) succeededLockTokens: string[]; } @doc("The result of the Reject operation.") model RejectResult { @doc("Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).") + @visibility(Lifecycle.Read) failedLockTokens: FailedLockToken[]; @doc("Array of lock tokens for the successfully rejected cloud events.") + @visibility(Lifecycle.Read) succeededLockTokens: string[]; } @doc("The result of the RenewLock operation.") model RenewCloudEventLocksResult { @doc("Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).") + @visibility(Lifecycle.Read) failedLockTokens: FailedLockToken[]; @doc("Array of lock tokens for the successfully renewed locks.") + @visibility(Lifecycle.Read) succeededLockTokens: string[]; }