From a48dbfd411ddcb91ad1e09c47d1def14e79b8905 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Tue, 3 Oct 2023 14:10:46 -0700 Subject: [PATCH] [eventgrid] Align tspconfig.yaml and namespace with convention (#26061) --- specification/eventgrid/Azure.Messaging.EventGrid/main.tsp | 2 +- .../eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 8d7b183e3486..98423faed428 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -37,7 +37,7 @@ import "@azure-tools/typespec-azure-core"; ) @doc("Azure Messaging EventGrid Client") @versioned(ServiceApiVersions) -namespace EventGrid { +namespace Microsoft.EventGrid { using TypeSpec.Http; using TypeSpec.Rest; using TypeSpec.Versioning; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml index 374d35816f88..36744acb77b9 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml @@ -11,10 +11,11 @@ linter: - "@azure-tools/typespec-azure-core/all" options: "@azure-tools/typespec-autorest": + azure-resource-provider-folder: "data-plane" + emitter-output-dir: "{project-root}/.." examples-directory: examples + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/EventGrid.json" omit-unreachable-types: true - output-file: EventGrid.json - emitter-output-dir: "{project-root}/../data-plane/Microsoft.EventGrid/preview/2023-06-01-preview" "@azure-tools/typespec-python": package-pprint-name: "\"Azure Event Grid\"" package-mode: "dataplane"