From 13f6949cfbf5296ae6770774569ebf65defc7bb8 Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Wed, 12 Apr 2023 11:03:07 -0700 Subject: [PATCH] add @internal for python --- .../eventgrid/Azure.Messaging.EventGrid/main.tsp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index cf3428a4456e..9f7dfd245af6 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -3,6 +3,7 @@ import "@typespec/rest"; import "@typespec/versioning"; import "@azure-tools/typespec-autorest"; import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-client-generator-core"; enum ServiceApiVersions { v2023_06_01_preview: "2023-06-01-preview" @@ -47,8 +48,10 @@ namespace Azure.Messaging.EventGridMessaging { using TypeSpec.Versioning; using Azure.Core; using Azure.Core.Foundations; + using Azure.ClientGenerator.Core; @doc("Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.") + @internal model CloudEventEvent { @doc("An identifier for the event. The combination of id and source must be unique for each distinct event.") id: string; @@ -93,7 +96,8 @@ namespace Azure.Messaging.EventGridMessaging { lockToken: LockToken; } - @doc("Receive operation details per Cloud Event.") + @doc("Receive operation details per Cloud Event.") + @internal model ReceiveDetails { @doc("The Event Broker details.") brokerProperties: BrokerProperties; @@ -131,7 +135,7 @@ namespace Azure.Messaging.EventGridMessaging { @doc("Lock token input formatting.") model LockTokenInput { - @doc("LockToken") + @doc("LockTokens") lockTokens: string[]; } @@ -139,6 +143,7 @@ namespace Azure.Messaging.EventGridMessaging { @doc("Publish Single Cloud Event to namespace topic.") @route("/topics/{topicName}:publish", {shared: true}) + @internal @post op PublishCloudEvent is Azure.Core.RpcOperation<{ @doc("content type") @header("content-type") @@ -156,6 +161,7 @@ namespace Azure.Messaging.EventGridMessaging { @doc("Publish Batch of Cloud Events to namespace topic.") @route("/topics/{topicName}:publish", {shared: true}) + @internal @post op PublishBatchOfCloudEvents is Azure.Core.RpcOperation<{ @doc("content type") @header("content-type") @@ -172,6 +178,7 @@ namespace Azure.Messaging.EventGridMessaging { @doc("Receive Batch of Cloud Events from the Event Subscription.") @route("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive") + @internal @post op ReceiveBatchOfCloudEvents is Azure.Core.RpcOperation<{ @doc("Topic Name.") @path