From 3a913067f90ff5827eca92e33b9c2e47c13dd891 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:19:55 +0800 Subject: [PATCH] [Container Orchestrator Runtime] Update tspconfig for Python SDK (#30563) * update tsp-config * fix-format --- .../KubernetesRuntime.Management/client.tsp | 9 +++++++++ .../KubernetesRuntime.Management/tspconfig.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 specification/kubernetesruntime/KubernetesRuntime.Management/client.tsp diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/client.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/client.tsp new file mode 100644 index 000000000000..a1b8cb0a8104 --- /dev/null +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/client.tsp @@ -0,0 +1,9 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.KubernetesRuntime, + "ContainerOrchestratorRuntimeMgmt", + "python" +); diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml index 70be694b2a64..bdfdb8ce28c5 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml @@ -1,4 +1,6 @@ parameters: + "service-dir": + default: "sdk/containerorchestratorruntime" swagger-repo-dir: default: "{project-root}/swagger" @@ -12,6 +14,13 @@ options: arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/kubernetesruntime.json" use-read-only-status-schema: true + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-containerorchestratorruntime" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true + examples-dir: "{project-root}/examples" linter: extends: