From 36946d9b9b6b4be52711a6ec56d939daa70fc089 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Tue, 15 Oct 2024 15:31:13 +0800 Subject: [PATCH] mgmt, java, fleet, tspconfig (#30926) --- .../Fleet.Management/client.tsp | 30 +++++++++++++++++++ .../Fleet.Management/tspconfig.yaml | 9 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 specification/containerservice/Fleet.Management/client.tsp diff --git a/specification/containerservice/Fleet.Management/client.tsp b/specification/containerservice/Fleet.Management/client.tsp new file mode 100644 index 000000000000..1d46a4590c3e --- /dev/null +++ b/specification/containerservice/Fleet.Management/client.tsp @@ -0,0 +1,30 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.ContainerService, + "ContainerServiceFleetManagementClient", + "java" +); + +@@clientName(Microsoft.ContainerService.APIServerAccessProfile, + "ApiServerAccessProfile", + "java" +); +@@clientName(Azure.ResourceManager.EntityTagProperty.eTag, "etag", "java"); + +@@clientName(Azure.ResourceManager.Legacy.ManagedServiceIdentityV4, + "ManagedServiceIdentity" +); + +#suppress "deprecated" "property flatten for SDK backward compatibility" +@@flattenProperty(Azure.ResourceManager.TrackedResource.properties); +#suppress "deprecated" "property flatten for SDK backward compatibility" +@@flattenProperty(Azure.ResourceManager.ProxyResource.properties); +#suppress "deprecated" "property flatten for SDK backward compatibility" +@@flattenProperty(Azure.ResourceManager.Foundations.ResourceUpdateModel.properties +); +#suppress "deprecated" "property flatten for SDK backward compatibility" +@@flattenProperty(Azure.ResourceManager.Foundations.ProxyResourceUpdateModel.properties +); diff --git a/specification/containerservice/Fleet.Management/tspconfig.yaml b/specification/containerservice/Fleet.Management/tspconfig.yaml index afc4badcdd31..645c998ef9d2 100644 --- a/specification/containerservice/Fleet.Management/tspconfig.yaml +++ b/specification/containerservice/Fleet.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/containerservicefleet" emit: - "@azure-tools/typespec-autorest" linter: @@ -13,7 +16,11 @@ options: arm-resource-flattening: true emitter-output-dir: "{project-root}/.." arm-types-dir: "{project-root}/../../common-types/resource-management" - examples-dir: "{project-root}/examples" output-file: "{azure-resource-provider-folder}/{service-name}/fleet/{version-status}/{version}/fleets.json" omit-unreachable-types: true use-read-only-status-schema: true + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-containerservicefleet" + namespace: "com.azure.resourcemanager.containerservicefleet" + service-name: "Container Service Fleet" + flavor: azure