Skip to content

Commit

Permalink
add @internal for python
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence committed Apr 12, 2023
1 parent 15dccec commit 13f6949
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions specification/eventgrid/Azure.Messaging.EventGrid/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -131,14 +135,15 @@ namespace Azure.Messaging.EventGridMessaging {

@doc("Lock token input formatting.")
model LockTokenInput {
@doc("LockToken")
@doc("LockTokens")
lockTokens: string[];
}

// POST https://{namespaceName}.{region}.eventgrid.azure.net/topics/{topicName}:publish?api-version={apiVersion}}

@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")
Expand All @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit 13f6949

Please sign in to comment.