From fcee3edac78a8afb8a402e4920c395998caf12fb Mon Sep 17 00:00:00 2001 From: Yalin Li Date: Mon, 11 Nov 2024 20:23:23 -0800 Subject: [PATCH] Add AppConfig python configs (#31489) --- specification/appconfiguration/AppConfiguration/client.tsp | 5 +---- .../appconfiguration/AppConfiguration/tspconfig.yaml | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/specification/appconfiguration/AppConfiguration/client.tsp b/specification/appconfiguration/AppConfiguration/client.tsp index 7b5ef1e841d9..7fdf10a91df1 100644 --- a/specification/appconfiguration/AppConfiguration/client.tsp +++ b/specification/appconfiguration/AppConfiguration/client.tsp @@ -7,12 +7,9 @@ using AzureAppConfiguration; namespace SdkCustomizations; -// Cross-language customizations -// except Java, since Java has built-in type in azure-core for Error model. -@@clientName(Foundations.Error, "ErrorDetail", "python,csharp,javascript,go"); - // Python specific customizations @@clientName(KeyValueFields, "ConfigurationSettingFields", "python"); @@clientName(CompositionType, "SnapshotComposition", "python"); @@access(putKeyValue, Access.internal, "python"); @@access(updateSnapshot, Access.internal, "python"); +@@access(SnapshotUpdateParameters, Access.public, "python"); diff --git a/specification/appconfiguration/AppConfiguration/tspconfig.yaml b/specification/appconfiguration/AppConfiguration/tspconfig.yaml index 984363d3eec1..41d1da12c5c2 100644 --- a/specification/appconfiguration/AppConfiguration/tspconfig.yaml +++ b/specification/appconfiguration/AppConfiguration/tspconfig.yaml @@ -15,6 +15,7 @@ options: "@azure-tools/typespec-python": package-dir: "azure-appconfiguration" package-name: "{package-dir}" + package-pprint-name: "App Configuration Data" package-mode: dataplane flavor: azure generate-test: true