From e161f311bbc74ff99336c04e0ec6297525ad9ce9 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:43:55 +0800 Subject: [PATCH 01/22] add typespec-ts configs in all the tspconfig --- specification/cosmos-db/resource-manager/readme.md | 2 +- .../DeviceRegistry.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../edgezones/EdgeZones.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 8 ++++++++ .../Azure.Messaging.EventGrid/tspconfig.yaml | 8 ++++++++ .../Microsoft.Fabric.Management/tspconfig.yaml | 1 - .../PublicCloud.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../IoTOperations.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../IoTOperationsMQ.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../KubernetesRuntime.Management/tspconfig.yaml | 12 +++++++++++- .../Astronomer.Astro.Management/tspconfig.yaml | 11 +++++++++++ .../Qumulo.Storage.Management/tspconfig.yaml | 11 +++++++++++ .../LoadTestService.Management/tspconfig.yaml | 11 +++++++++++ .../AzureAI.Assets/tspconfig.yaml | 8 ++++++++ .../MobilePacketCore.Management/tspconfig.yaml | 11 +++++++++++ .../resource-manager/readme.typescript.md | 4 ++-- .../tspconfig.yaml | 1 - .../Microsoft.Monitor.Management/tspconfig.yaml | 11 +++++++++++ .../MpcNetworkFunction.Management/tspconfig.yaml | 11 +++++++++++ .../NetworkAnalytics.Management/tspconfig.yaml | 11 +++++++++++ .../PlaywrightTesting.Management/tspconfig.yaml | 11 +++++++++++ .../PlaywrightTesting/tspconfig.yaml | 8 ++++++++ .../portal/Dashboard.Management/tspconfig.yaml | 11 +++++++++++ .../TenantConfiguration.Management/tspconfig.yaml | 11 +++++++++++ .../CopilotSettings.Management/tspconfig.yaml | 11 +++++++++++ .../Extension.Management/tspconfig.yaml | 11 +++++++++++ .../Azure.ProgrammableConnectivity/tspconfig.yaml | 8 ++++++++ .../PurviewPolicy.Management/tspconfig.yaml | 11 +++++++++++ .../quantum/Quantum.Workspace/tspconfig.yaml | 8 ++++++++ specification/scvmm/ScVmm.Management/tspconfig.yaml | 11 +++++++++++ .../ServiceNetworking.Management/tspconfig.yaml | 11 +++++++++++ .../sphere/Sphere.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../Microsoft.VerifiedId.Management/tspconfig.yaml | 11 +++++++++++ .../vmware/Microsoft.AVS.Management/tspconfig.yaml | 11 +++++++++++ .../VoiceServices.Provisioning/tspconfig.yaml | 8 ++++++++ .../Workloads.Operations.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ .../Workloads.SAPMonitor.Management/tspconfig.yaml | 11 +++++++++++ .../tspconfig.yaml | 11 +++++++++++ 44 files changed, 422 insertions(+), 6 deletions(-) diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 4ed7aae03796..772d4189db72 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the Cosmos-DB API. ``` yaml title: CosmosDBManagementClient openapi-type: arm -tag: package-preview-2024-09 +tag: package-2024-08 ``` ### Tag: package-preview-2024-09 diff --git a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml index 3b78047cb20e..28ca5a54fc89 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml +++ b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml @@ -18,6 +18,17 @@ options: flavor: "azure" namespace: "com.azure.resourcemanager.deviceregistry" service-name: "Device Registry" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-deviceregistry" + flavor: "azure" + packageDetails: + name: "@azure/arm-deviceregistry" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml index a6de4688fc7d..0bdf836acf94 100644 --- a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml @@ -39,3 +39,14 @@ options: clear-output-folder: true package-dir: "Azure.ResourceManager.DevOpsInfrastructure" namespace: "{package-dir}" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-devopsinfrastructure" + flavor: "azure" + packageDetails: + name: "@azure/arm-devopsinfrastructure" diff --git a/specification/edgezones/EdgeZones.Management/tspconfig.yaml b/specification/edgezones/EdgeZones.Management/tspconfig.yaml index 87cf3b8931b1..3981be65ef15 100644 --- a/specification/edgezones/EdgeZones.Management/tspconfig.yaml +++ b/specification/edgezones/EdgeZones.Management/tspconfig.yaml @@ -38,3 +38,14 @@ options: head-as-boolean: true inject-spans: true remove-unreferenced-types: true + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-edgezones" + flavor: "azure" + packageDetails: + name: "@azure/arm-edgezones" diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml index 970d52f81e55..7c401945090d 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml @@ -32,3 +32,11 @@ options: namespace: Azure.Messaging.EventGrid.SystemEvents flavor: azure api-version: "2018-01-01" + "@azure-tools/typespec-ts": + generateMetadata: true + generateTest: true + azureSdkForJs: true + package-dir: "eventgrid" + packageDetails: + name: "@azure/eventgrid" + flavor: azure \ No newline at end of file diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml index 8477281bc07d..e6088982e02f 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml @@ -45,3 +45,11 @@ options: dev-options: loglevel: info flavor: azure + "@azure-tools/typespec-ts": + generateMetadata: true + generateTest: true + azureSdkForJs: true + package-dir: "eventgrid" + packageDetails: + name: "@azure/eventgrid" + flavor: azure diff --git a/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml b/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml index f9653224cf9d..e8db99367c9b 100644 --- a/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml +++ b/specification/fabric/Microsoft.Fabric.Management/tspconfig.yaml @@ -32,7 +32,6 @@ options: experimentalExtensibleEnums: true enableOperationGroup: true package-dir: "arm-fabric" - emitter-output-dir: "{project-root}/{service-dir}/{package-dir}" flavor: "azure" packageDetails: name: "@azure/arm-fabric" diff --git a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml index 217fcecbfba9..ade37977ceb1 100644 --- a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml +++ b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml @@ -8,6 +8,17 @@ options: emitter-output-dir: "{output-dir}" output-file: "{azure-resource-provider-folder}/{service-name}/PublicCloud/{version-status}/{version}/publicCloud.json" arm-types-dir: "../../../../../../common-types/resource-management" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-hybridconnectivity" + flavor: "azure" + packageDetails: + name: "@azure/arm-hybridconnectivity" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml b/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml index f920061a82c1..783e6ba89c76 100644 --- a/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml +++ b/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml @@ -25,6 +25,17 @@ options: flavor: azure clear-output-folder: true namespace: "Azure.ResourceManager.InformaticaDataManagement" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-informaticadatamanagement" + flavor: "azure" + packageDetails: + name: "@azure/arm-informaticadatamanagement" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperations/IoTOperations.Management/tspconfig.yaml b/specification/iotoperations/IoTOperations.Management/tspconfig.yaml index e6f26465450b..1bc3c564b245 100644 --- a/specification/iotoperations/IoTOperations.Management/tspconfig.yaml +++ b/specification/iotoperations/IoTOperations.Management/tspconfig.yaml @@ -6,6 +6,17 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/iotoperations.json" use-read-only-status-schema: true + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-iotoperations" + flavor: "azure" + packageDetails: + name: "@azure/arm-iotoperations" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml index bfb5a822f38a..0b78b67a1471 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml @@ -9,6 +9,17 @@ options: arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" omit-unreachable-types: true + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-iotoperationsdataprocessor" + flavor: "azure" + packageDetails: + name: "@azure/arm-iotoperationsdataprocessor" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml b/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml index 054be2f00a65..5c6f5b1f7301 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml @@ -8,6 +8,17 @@ options: # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/iotoperationsmq.json" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-iotoperationsmq" + flavor: "azure" + packageDetails: + name: "@azure/arm-iotoperationsmq" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml index bfb5a822f38a..cd5114d01b9f 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml @@ -9,6 +9,17 @@ options: arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" omit-unreachable-types: true + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-iotoperationsorchestrator" + flavor: "azure" + packageDetails: + name: "@azure/arm-iotoperationsorchestrator" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml index bdfdb8ce28c5..97d0fcb8debb 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml @@ -21,7 +21,17 @@ options: generate-test: true generate-sample: true examples-dir: "{project-root}/examples" - + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-kubernetesruntime" + flavor: "azure" + packageDetails: + name: "@azure/arm-kubernetesruntime" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml index 620cec5da05d..8bc629ae9ec8 100644 --- a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml +++ b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml @@ -14,3 +14,14 @@ options: # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/astronomer.json" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-astro" + flavor: "azure" + packageDetails: + name: "@azure/arm-astro" diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml index 34a7679c9def..ceb8bf493c9a 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml +++ b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml @@ -10,6 +10,17 @@ options: # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/Qumulo.Storage.json" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-qumulo" + flavor: "azure" + packageDetails: + name: "@azure/arm-qumulo" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml index 9a2d20850869..2e9d3fbc1d85 100644 --- a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml +++ b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml @@ -16,3 +16,14 @@ options: output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/loadtestservice.json" omit-unreachable-types: true use-read-only-status-schema: true + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-loadtesting" + flavor: "azure" + packageDetails: + name: "@azure/arm-loadtesting" \ No newline at end of file diff --git a/specification/machinelearningservices/AzureAI.Assets/tspconfig.yaml b/specification/machinelearningservices/AzureAI.Assets/tspconfig.yaml index 64ee3f8728e1..ea682567e0e0 100644 --- a/specification/machinelearningservices/AzureAI.Assets/tspconfig.yaml +++ b/specification/machinelearningservices/AzureAI.Assets/tspconfig.yaml @@ -17,6 +17,14 @@ options: generate-test: true generate-sample: true examples-dir: "{project-root}/examples" + "@azure-tools/typespec-ts": + generateMetadata: true + generateTest: true + azureSdkForJs: true + package-dir: "ai-resources-autogen" + packageDetails: + name: "@azure/ai-resources-autogen" + flavor: azure linter: extends: - "@azure-tools/typespec-azure-rulesets/data-plane" diff --git a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml index 7b8c20def1a7..bf6881d34997 100644 --- a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml +++ b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml @@ -15,3 +15,14 @@ options: "@azure-tools/typespec-providerhub-controller": emitter-output-dir: "{output-dir}/generated" code-kind: model + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-mobilepacketcore" + flavor: "azure" + packageDetails: + name: "@azure/arm-mobilepacketcore" diff --git a/specification/mobilepacketcore/resource-manager/readme.typescript.md b/specification/mobilepacketcore/resource-manager/readme.typescript.md index 899f3b0428f8..2f511467722c 100644 --- a/specification/mobilepacketcore/resource-manager/readme.typescript.md +++ b/specification/mobilepacketcore/resource-manager/readme.typescript.md @@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 18 Sep 2024 15:43:41 +0800 Subject: [PATCH 02/22] revert unexpected change --- specification/cosmos-db/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cosmos-db/resource-manager/readme.md b/specification/cosmos-db/resource-manager/readme.md index 772d4189db72..4ed7aae03796 100644 --- a/specification/cosmos-db/resource-manager/readme.md +++ b/specification/cosmos-db/resource-manager/readme.md @@ -27,7 +27,7 @@ These are the global settings for the Cosmos-DB API. ``` yaml title: CosmosDBManagementClient openapi-type: arm -tag: package-2024-08 +tag: package-preview-2024-09 ``` ### Tag: package-preview-2024-09 From 3b36beb0d80554195dc1d2de23176631611fe53d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:46:01 +0800 Subject: [PATCH 03/22] update --- .../hybridconnectivity/PublicCloud.Management/tspconfig.yaml | 3 +++ .../Astronomer.Astro.Management/tspconfig.yaml | 3 +++ .../liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml | 3 +++ .../loadtestservice/LoadTestService.Management/tspconfig.yaml | 2 ++ .../MobilePacketCore.Management/tspconfig.yaml | 3 +++ .../mobilepacketcore/resource-manager/readme.typescript.md | 4 ++-- .../monitor/Microsoft.Monitor.Management/tspconfig.yaml | 3 +++ .../NetworkAnalytics.Management/tspconfig.yaml | 3 +++ .../PlaywrightTesting.Management/tspconfig.yaml | 2 ++ .../ServiceNetworking.Management/tspconfig.yaml | 3 +++ specification/sphere/Sphere.Management/tspconfig.yaml | 3 +++ specification/vmware/Microsoft.AVS.Management/tspconfig.yaml | 2 +- .../Workloads.SAPDiscoverySite.Management/tspconfig.yaml | 3 +++ .../Workloads.SAPVirtualInstance.Management/tspconfig.yaml | 3 +++ 14 files changed, 37 insertions(+), 3 deletions(-) diff --git a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml index ade37977ceb1..1d513f8e5065 100644 --- a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml +++ b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/hybridconnectivity" output-dir: "{project-root}/../" emit: - "@azure-tools/typespec-autorest" diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml index 8bc629ae9ec8..b591fdcfeeb7 100644 --- a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml +++ b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/astro" output-dir: "{project-root}/" emit: - "@azure-tools/typespec-autorest" diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml index ceb8bf493c9a..275a29e30617 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml +++ b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/liftrqumulo" output-dir: "{project-root}/" emit: - "@azure-tools/typespec-autorest" diff --git a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml index 2e9d3fbc1d85..8464314b2b6f 100644 --- a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml +++ b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml @@ -4,6 +4,8 @@ linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" parameters: + "service-dir": + default: "sdk/loadtesting" "service-directory-name": default: "loadtestservice" options: diff --git a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml index bf6881d34997..72efaba67952 100644 --- a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml +++ b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/mobilepacketcore" emit: - "@azure-tools/typespec-autorest" linter: diff --git a/specification/mobilepacketcore/resource-manager/readme.typescript.md b/specification/mobilepacketcore/resource-manager/readme.typescript.md index 2f511467722c..899f3b0428f8 100644 --- a/specification/mobilepacketcore/resource-manager/readme.typescript.md +++ b/specification/mobilepacketcore/resource-manager/readme.typescript.md @@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 18 Sep 2024 17:12:13 +0800 Subject: [PATCH 04/22] update --- .../tspconfig.yaml | 4 ++-- .../IoTOperations.Management/tspconfig.yaml | 11 ----------- .../tspconfig.yaml | 11 ----------- .../IoTOperationsMQ.Management/tspconfig.yaml | 11 ----------- .../tspconfig.yaml | 11 ----------- .../KubernetesRuntime.Management/tspconfig.yaml | 2 +- .../resource-manager/readme.typescript.md | 4 ++-- .../MpcNetworkFunction.Management/tspconfig.yaml | 3 +++ .../PlaywrightTesting/tspconfig.yaml | 8 -------- .../CopilotSettings.Management/tspconfig.yaml | 11 ----------- .../Extension.Management/tspconfig.yaml | 11 ----------- .../PurviewPolicy.Management/tspconfig.yaml | 11 ----------- .../quantum/Quantum.Workspace/tspconfig.yaml | 10 +--------- .../SplitIO.Experimentation.Management/tspconfig.yaml | 11 ----------- .../Microsoft.VerifiedId.Management/tspconfig.yaml | 3 +++ .../VoiceServices.Provisioning/tspconfig.yaml | 8 -------- .../Workloads.Operations.Management/tspconfig.yaml | 11 ----------- .../Workloads.SAPMonitor.Management/tspconfig.yaml | 3 +++ 18 files changed, 15 insertions(+), 129 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml index 7c401945090d..4ff44ff79f83 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml @@ -36,7 +36,7 @@ options: generateMetadata: true generateTest: true azureSdkForJs: true - package-dir: "eventgrid" + package-dir: "eventgrid-system-events" packageDetails: - name: "@azure/eventgrid" + name: "@azure/eventgrid-system-events" flavor: azure \ No newline at end of file diff --git a/specification/iotoperations/IoTOperations.Management/tspconfig.yaml b/specification/iotoperations/IoTOperations.Management/tspconfig.yaml index 1bc3c564b245..e6f26465450b 100644 --- a/specification/iotoperations/IoTOperations.Management/tspconfig.yaml +++ b/specification/iotoperations/IoTOperations.Management/tspconfig.yaml @@ -6,17 +6,6 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/iotoperations.json" use-read-only-status-schema: true - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-iotoperations" - flavor: "azure" - packageDetails: - name: "@azure/arm-iotoperations" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml index 0b78b67a1471..bfb5a822f38a 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/tspconfig.yaml @@ -9,17 +9,6 @@ options: arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" omit-unreachable-types: true - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-iotoperationsdataprocessor" - flavor: "azure" - packageDetails: - name: "@azure/arm-iotoperationsdataprocessor" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml b/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml index 5c6f5b1f7301..054be2f00a65 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/tspconfig.yaml @@ -8,17 +8,6 @@ options: # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/iotoperationsmq.json" - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-iotoperationsmq" - flavor: "azure" - packageDetails: - name: "@azure/arm-iotoperationsmq" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml index cd5114d01b9f..bfb5a822f38a 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/tspconfig.yaml @@ -9,17 +9,6 @@ options: arm-resource-flattening: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" omit-unreachable-types: true - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-iotoperationsorchestrator" - flavor: "azure" - packageDetails: - name: "@azure/arm-iotoperationsorchestrator" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml index 97d0fcb8debb..566c1a8580db 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/tspconfig.yaml @@ -1,6 +1,6 @@ parameters: "service-dir": - default: "sdk/containerorchestratorruntime" + default: "sdk/kubernetesruntime" swagger-repo-dir: default: "{project-root}/swagger" diff --git a/specification/mobilepacketcore/resource-manager/readme.typescript.md b/specification/mobilepacketcore/resource-manager/readme.typescript.md index 899f3b0428f8..2f511467722c 100644 --- a/specification/mobilepacketcore/resource-manager/readme.typescript.md +++ b/specification/mobilepacketcore/resource-manager/readme.typescript.md @@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder= Date: Thu, 19 Sep 2024 10:50:52 +0800 Subject: [PATCH 05/22] update --- .../mobilepacketcore/resource-manager/readme.typescript.md | 1 + .../monitor/Microsoft.Monitor.Management/tspconfig.yaml | 1 + specification/vmware/Microsoft.AVS.Management/tspconfig.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/specification/mobilepacketcore/resource-manager/readme.typescript.md b/specification/mobilepacketcore/resource-manager/readme.typescript.md index 2f511467722c..74ba0e9a29e6 100644 --- a/specification/mobilepacketcore/resource-manager/readme.typescript.md +++ b/specification/mobilepacketcore/resource-manager/readme.typescript.md @@ -10,4 +10,5 @@ typescript: output-folder: "$(typescript-sdks-folder)/mobilepacketcore/arm-mobilepacketcore" payload-flattening-threshold: 1 generate-metadata: true + clear-output-folder: true ``` diff --git a/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml b/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml index f96878dbc7cf..c90dc6a89526 100644 --- a/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml +++ b/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml @@ -24,6 +24,7 @@ options: hierarchyClient: false experimentalExtensibleEnums: true enableOperationGroup: true + clear-output-folder: true package-dir: "arm-monitor" flavor: "azure" packageDetails: diff --git a/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml b/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml index 27d808448b0e..efa0ef297fd6 100644 --- a/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml +++ b/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml @@ -24,6 +24,7 @@ options: hierarchyClient: false experimentalExtensibleEnums: true enableOperationGroup: true + clear-output-folder: true package-dir: "arm-avs" flavor: "azure" packageDetails: From 386aaedd2edd916b8cef6aa0fffd7b72688787fc Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:06:08 +0800 Subject: [PATCH 06/22] Update tspconfig.yaml --- .../ComputeSchedule.Management/tspconfig.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml b/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml index 713a5826ab6e..cc4bec1d2074 100644 --- a/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml +++ b/specification/computeschedule/ComputeSchedule.Management/tspconfig.yaml @@ -15,6 +15,17 @@ options: generate-test: true generate-sample: true examples-dir: "{project-root}/examples" + "@azure-tools/typespec-ts": + azureSdkForJs: true + isModularLibrary: true + generateMetadata: true + hierarchyClient: false + experimentalExtensibleEnums: true + enableOperationGroup: true + package-dir: "arm-computeschedule" + flavor: "azure" + packageDetails: + name: "@azure/arm-computeschedule" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From c3474b5f97987003f73a08765b3450f2829eb6ea Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:18:30 +0800 Subject: [PATCH 07/22] Update tspconfig.yaml --- .../Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml index 4ff44ff79f83..9b8b6f096729 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/tspconfig.yaml @@ -39,4 +39,4 @@ options: package-dir: "eventgrid-system-events" packageDetails: name: "@azure/eventgrid-system-events" - flavor: azure \ No newline at end of file + flavor: azure From 57200a9feb8f5d7d143e58f5fdb1c9c0dced760d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:47:41 +0800 Subject: [PATCH 08/22] update --- .../tspconfig.yaml | 2 +- .../portal/Dashboard.Management/tspconfig.yaml | 11 ----------- .../TenantConfiguration.Management/tspconfig.yaml | 11 ----------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml b/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml index 783e6ba89c76..e58788195f40 100644 --- a/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml +++ b/specification/informatica/Informatica.DataManagement.Management/tspconfig.yaml @@ -1,6 +1,6 @@ parameters: "service-dir": - default: "sdk/informaticadatamanagement" + default: "sdk/informatica" emit: - "@azure-tools/typespec-autorest" options: diff --git a/specification/portal/Dashboard.Management/tspconfig.yaml b/specification/portal/Dashboard.Management/tspconfig.yaml index 87521f32b730..fd1283021a40 100644 --- a/specification/portal/Dashboard.Management/tspconfig.yaml +++ b/specification/portal/Dashboard.Management/tspconfig.yaml @@ -7,17 +7,6 @@ options: emitter-output-dir: "{project-root}/.." azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/portal.json" - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-portal" - flavor: "azure" - packageDetails: - name: "@azure/arm-portal" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/portal/TenantConfiguration.Management/tspconfig.yaml b/specification/portal/TenantConfiguration.Management/tspconfig.yaml index d016bf0a9b39..77f4271d1c6e 100644 --- a/specification/portal/TenantConfiguration.Management/tspconfig.yaml +++ b/specification/portal/TenantConfiguration.Management/tspconfig.yaml @@ -7,17 +7,6 @@ options: emitter-output-dir: "{project-root}/.." azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/tenantConfiguration.json" - "@azure-tools/typespec-ts": - azureSdkForJs: true - isModularLibrary: true - generateMetadata: true - hierarchyClient: false - experimentalExtensibleEnums: true - enableOperationGroup: true - package-dir: "arm-portal" - flavor: "azure" - packageDetails: - name: "@azure/arm-portal" linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From c2965e11e03d4911e0410e43557b9b9ff984eafb Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:51:44 +0800 Subject: [PATCH 09/22] Update readme.typescript.md --- .../mobilepacketcore/resource-manager/readme.typescript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/mobilepacketcore/resource-manager/readme.typescript.md b/specification/mobilepacketcore/resource-manager/readme.typescript.md index 74ba0e9a29e6..b305e9e4e6e8 100644 --- a/specification/mobilepacketcore/resource-manager/readme.typescript.md +++ b/specification/mobilepacketcore/resource-manager/readme.typescript.md @@ -7,7 +7,7 @@ Please also specify `--typescript-sdks-folder= Date: Fri, 20 Sep 2024 15:05:51 +0800 Subject: [PATCH 10/22] Create client.tsp --- specification/vmware/Microsoft.AVS.Management/client.tsp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 specification/vmware/Microsoft.AVS.Management/client.tsp diff --git a/specification/vmware/Microsoft.AVS.Management/client.tsp b/specification/vmware/Microsoft.AVS.Management/client.tsp new file mode 100644 index 000000000000..be82e4135fec --- /dev/null +++ b/specification/vmware/Microsoft.AVS.Management/client.tsp @@ -0,0 +1,8 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Azure.ResourceManager.CommonTypes; +using Microsoft.AVS; + +@@clientName(Microsoft.AVS, "AzureVMwareSolutionAPI", "javascript"); From f76b0ebc47403cd66dcf5359e1bea57e32216dbe Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:03:38 +0800 Subject: [PATCH 11/22] add suppression to skip typespec validation --- .../loadtestservice/LoadTestService.Management/client.tsp | 1 + .../loadtestservice/LoadTestService.Management/routes.tsp | 1 + specification/quantum/Quantum.Workspace/operations/sessions.tsp | 1 + 3 files changed, 3 insertions(+) diff --git a/specification/loadtestservice/LoadTestService.Management/client.tsp b/specification/loadtestservice/LoadTestService.Management/client.tsp index bfab6903a67c..781e2e6536ce 100644 --- a/specification/loadtestservice/LoadTestService.Management/client.tsp +++ b/specification/loadtestservice/LoadTestService.Management/client.tsp @@ -38,6 +38,7 @@ interface LoadTests { deleteLoadtest is Microsoft.LoadTestService.LoadTests.delete; + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "" outboundNetworkDependenciesEndpoints is Microsoft.LoadTestService.LoadTests.outboundNetworkDependenciesEndpoints; getQuota is Microsoft.LoadTestService.Quotas.get; diff --git a/specification/loadtestservice/LoadTestService.Management/routes.tsp b/specification/loadtestservice/LoadTestService.Management/routes.tsp index 89eed6fc3c08..622641a548d6 100644 --- a/specification/loadtestservice/LoadTestService.Management/routes.tsp +++ b/specification/loadtestservice/LoadTestService.Management/routes.tsp @@ -55,6 +55,7 @@ interface LoadTests { delete is ArmResourceDeleteWithoutOkAsync; + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "" #suppress "@azure-tools/typespec-azure-core/no-openapi" "OperationID already published." @operationId("LoadTests_ListOutboundNetworkDependenciesEndpoints") @doc("Lists the endpoints that agents may call as part of load testing.") diff --git a/specification/quantum/Quantum.Workspace/operations/sessions.tsp b/specification/quantum/Quantum.Workspace/operations/sessions.tsp index 28a6ffd6792f..222187b9d518 100644 --- a/specification/quantum/Quantum.Workspace/operations/sessions.tsp +++ b/specification/quantum/Quantum.Workspace/operations/sessions.tsp @@ -84,6 +84,7 @@ namespace Quantum.Workspace.Operations { list is ListOperation; /** List jobs in a session. */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "" #suppress "@azure-tools/typespec-azure-core/no-openapi" "The nesting of Jobs under a Session makes the auto-generated ID to be Sessions_JobsList, which is not in a Noun_Verb format." #suppress "@azure-tools/typespec-azure-core/use-standard-operations" """ We had to use a custom ResourceList to avoid an autoroute bug for workspace/jobs and sesssions/{sessionId}/jobs. From 69c22a9140704031049fe2152bf58323bbc97bb2 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:39:10 +0800 Subject: [PATCH 12/22] update --- .../loadtestservice/LoadTestService.Management/tspconfig.yaml | 2 +- specification/quantum/Quantum.Workspace/tspconfig.yaml | 2 +- .../ServiceNetworking.Management/tspconfig.yaml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml index 8464314b2b6f..b6cb10a9deb6 100644 --- a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml +++ b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml @@ -28,4 +28,4 @@ options: package-dir: "arm-loadtesting" flavor: "azure" packageDetails: - name: "@azure/arm-loadtesting" \ No newline at end of file + name: "@azure/arm-loadtesting" diff --git a/specification/quantum/Quantum.Workspace/tspconfig.yaml b/specification/quantum/Quantum.Workspace/tspconfig.yaml index ece5f13425db..d30346a1c842 100644 --- a/specification/quantum/Quantum.Workspace/tspconfig.yaml +++ b/specification/quantum/Quantum.Workspace/tspconfig.yaml @@ -17,4 +17,4 @@ options: emit-lro-options: "none" omit-unreachable-types: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/quantum.json" - emitter-output-dir: "{project-root}/../" \ No newline at end of file + emitter-output-dir: "{project-root}/../" diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml index a02c834dc0ad..6b1e759aea01 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -29,4 +29,3 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-servicenetworking" - From 8e4e45de8a0e654c015e156b98c7da4384f3f1f6 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Tue, 8 Oct 2024 17:44:03 +0800 Subject: [PATCH 13/22] update tspconfigs for python --- .../deviceregistry/DeviceRegistry.Management/client.tsp | 6 ++++++ .../deviceregistry/DeviceRegistry.Management/tspconfig.yaml | 6 ++++++ .../hybridconnectivity/PublicCloud.Management/client.tsp | 6 ++++++ .../PublicCloud.Management/tspconfig.yaml | 6 ++++++ .../liftrastronomer/Astronomer.Astro.Management/client.tsp | 6 ++++++ .../Astronomer.Astro.Management/tspconfig.yaml | 6 ++++++ .../liftrqumulo/Qumulo.Storage.Management/client.tsp | 6 ++++++ .../liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml | 6 ++++++ .../LoadTestService.Management/tspconfig.yaml | 6 ++++++ .../mobilepacketcore/MobilePacketCore.Management/client.tsp | 6 ++++++ .../MobilePacketCore.Management/tspconfig.yaml | 6 ++++++ .../monitor/Microsoft.Monitor.Management/client.tsp | 6 ++++++ .../monitor/Microsoft.Monitor.Management/tspconfig.yaml | 6 ++++++ .../MpcNetworkFunction.Management/client.tsp | 6 ++++++ .../MpcNetworkFunction.Management/tspconfig.yaml | 6 ++++++ .../networkanalytics/NetworkAnalytics.Management/client.tsp | 6 ++++++ .../NetworkAnalytics.Management/tspconfig.yaml | 6 ++++++ .../PlaywrightTesting.Management/client.tsp | 6 ++++++ .../PlaywrightTesting.Management/tspconfig.yaml | 6 ++++++ specification/scvmm/ScVmm.Management/tspconfig.yaml | 6 ++++++ .../ServiceNetworking.Management/client.tsp | 6 ++++++ .../ServiceNetworking.Management/tspconfig.yaml | 6 ++++++ specification/sphere/Sphere.Management/client.tsp | 6 ++++++ specification/sphere/Sphere.Management/tspconfig.yaml | 6 ++++++ .../verifiedid/Microsoft.VerifiedId.Management/client.tsp | 6 ++++++ .../Microsoft.VerifiedId.Management/tspconfig.yaml | 6 ++++++ specification/vmware/Microsoft.AVS.Management/client.tsp | 1 + .../vmware/Microsoft.AVS.Management/tspconfig.yaml | 6 ++++++ .../Workloads.SAPDiscoverySite.Management/client.tsp | 6 ++++++ .../Workloads.SAPDiscoverySite.Management/tspconfig.yaml | 6 ++++++ .../workloads/Workloads.SAPMonitor.Management/client.tsp | 6 ++++++ .../Workloads.SAPMonitor.Management/tspconfig.yaml | 6 ++++++ .../Workloads.SAPVirtualInstance.Management/client.tsp | 6 ++++++ .../Workloads.SAPVirtualInstance.Management/tspconfig.yaml | 6 ++++++ 34 files changed, 199 insertions(+) create mode 100644 specification/deviceregistry/DeviceRegistry.Management/client.tsp create mode 100644 specification/hybridconnectivity/PublicCloud.Management/client.tsp create mode 100644 specification/liftrastronomer/Astronomer.Astro.Management/client.tsp create mode 100644 specification/liftrqumulo/Qumulo.Storage.Management/client.tsp create mode 100644 specification/mobilepacketcore/MobilePacketCore.Management/client.tsp create mode 100644 specification/monitor/Microsoft.Monitor.Management/client.tsp create mode 100644 specification/mpcnetworkfunction/MpcNetworkFunction.Management/client.tsp create mode 100644 specification/networkanalytics/NetworkAnalytics.Management/client.tsp create mode 100644 specification/playwrighttesting/PlaywrightTesting.Management/client.tsp create mode 100644 specification/servicenetworking/ServiceNetworking.Management/client.tsp create mode 100644 specification/sphere/Sphere.Management/client.tsp create mode 100644 specification/verifiedid/Microsoft.VerifiedId.Management/client.tsp create mode 100644 specification/workloads/Workloads.SAPDiscoverySite.Management/client.tsp create mode 100644 specification/workloads/Workloads.SAPMonitor.Management/client.tsp create mode 100644 specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp diff --git a/specification/deviceregistry/DeviceRegistry.Management/client.tsp b/specification/deviceregistry/DeviceRegistry.Management/client.tsp new file mode 100644 index 000000000000..73168e30aa9d --- /dev/null +++ b/specification/deviceregistry/DeviceRegistry.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.DeviceRegistry, "DeviceRegistryMgmt", "python"); diff --git a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml index 28ca5a54fc89..63f2fb8fdcc2 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml +++ b/specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml @@ -29,6 +29,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-deviceregistry" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-deviceregistry" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/hybridconnectivity/PublicCloud.Management/client.tsp b/specification/hybridconnectivity/PublicCloud.Management/client.tsp new file mode 100644 index 000000000000..08b555169e79 --- /dev/null +++ b/specification/hybridconnectivity/PublicCloud.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.HybridConnectivity, "HybridConnectivityMgmt", "python"); diff --git a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml index 1d513f8e5065..cc45c09a88c7 100644 --- a/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml +++ b/specification/hybridconnectivity/PublicCloud.Management/tspconfig.yaml @@ -22,6 +22,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-hybridconnectivity" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-hybridconnectivity" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/client.tsp b/specification/liftrastronomer/Astronomer.Astro.Management/client.tsp new file mode 100644 index 000000000000..02c6d01bd595 --- /dev/null +++ b/specification/liftrastronomer/Astronomer.Astro.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Astronomer.Astro, "AstroMgmt", "python"); diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml index b591fdcfeeb7..c9e34d097aae 100644 --- a/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml +++ b/specification/liftrastronomer/Astronomer.Astro.Management/tspconfig.yaml @@ -28,3 +28,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-astro" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-astro" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/client.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/client.tsp new file mode 100644 index 000000000000..2c4639cf19c2 --- /dev/null +++ b/specification/liftrqumulo/Qumulo.Storage.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Qumulo.Storage, "QumuloMgmt", "python"); diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml index 275a29e30617..55afadaca3a5 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml +++ b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml @@ -24,6 +24,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-qumulo" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-qumulo" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml index b6cb10a9deb6..d8145009a9f0 100644 --- a/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml +++ b/specification/loadtestservice/LoadTestService.Management/tspconfig.yaml @@ -29,3 +29,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-loadtesting" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-loadtesting" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/mobilepacketcore/MobilePacketCore.Management/client.tsp b/specification/mobilepacketcore/MobilePacketCore.Management/client.tsp new file mode 100644 index 000000000000..89335576c393 --- /dev/null +++ b/specification/mobilepacketcore/MobilePacketCore.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.MobilePacketCore, "MobilePacketCoreMgmt", "python"); diff --git a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml index 72efaba67952..102ab00043fd 100644 --- a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml +++ b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml @@ -29,3 +29,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-mobilepacketcore" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-mobilepacketcore" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true \ No newline at end of file diff --git a/specification/monitor/Microsoft.Monitor.Management/client.tsp b/specification/monitor/Microsoft.Monitor.Management/client.tsp new file mode 100644 index 000000000000..0de348f7b769 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Monitor, "MonitorManagement", "python"); diff --git a/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml b/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml index c90dc6a89526..f7e4b886d28e 100644 --- a/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml +++ b/specification/monitor/Microsoft.Monitor.Management/tspconfig.yaml @@ -29,3 +29,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-monitor" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-monitor" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/client.tsp b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/client.tsp new file mode 100644 index 000000000000..724d969e687f --- /dev/null +++ b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.MobilePacketCore, "MpcNetworkFunctionMgmt", "python"); diff --git a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml index 7539c28df9b2..6209cd48abbe 100644 --- a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml +++ b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml @@ -30,3 +30,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-mobilecore" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-mpcnetworkfunction" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true \ No newline at end of file diff --git a/specification/networkanalytics/NetworkAnalytics.Management/client.tsp b/specification/networkanalytics/NetworkAnalytics.Management/client.tsp new file mode 100644 index 000000000000..361977dcb3b4 --- /dev/null +++ b/specification/networkanalytics/NetworkAnalytics.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.NetworkAnalytics, "NetworkAnalyticsMgmt", "python"); diff --git a/specification/networkanalytics/NetworkAnalytics.Management/tspconfig.yaml b/specification/networkanalytics/NetworkAnalytics.Management/tspconfig.yaml index 86d6a7cb33fe..ac5a9485b2d0 100644 --- a/specification/networkanalytics/NetworkAnalytics.Management/tspconfig.yaml +++ b/specification/networkanalytics/NetworkAnalytics.Management/tspconfig.yaml @@ -36,3 +36,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-networkanalytics" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-networkanalytics" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp new file mode 100644 index 000000000000..e181d65bb076 --- /dev/null +++ b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.AzurePlaywrightService, "PlaywrightTestingMgmt", "python"); diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml index ce19576d9738..e61b2ab891ad 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml +++ b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml @@ -36,3 +36,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-playwrighttesting" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-playwrighttesting" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/scvmm/ScVmm.Management/tspconfig.yaml b/specification/scvmm/ScVmm.Management/tspconfig.yaml index 2b30a95f4ade..807f041ed650 100644 --- a/specification/scvmm/ScVmm.Management/tspconfig.yaml +++ b/specification/scvmm/ScVmm.Management/tspconfig.yaml @@ -24,6 +24,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-scvmm" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-scvmm" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: disable: extends: diff --git a/specification/servicenetworking/ServiceNetworking.Management/client.tsp b/specification/servicenetworking/ServiceNetworking.Management/client.tsp new file mode 100644 index 000000000000..bfb65529a4b5 --- /dev/null +++ b/specification/servicenetworking/ServiceNetworking.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.ServiceNetworking, "ServiceNetworkingMgmt", "python"); diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml index 6b1e759aea01..881b2e497e91 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -29,3 +29,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-servicenetworking" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-servicenetworking" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/sphere/Sphere.Management/client.tsp b/specification/sphere/Sphere.Management/client.tsp new file mode 100644 index 000000000000..dd6e80568e05 --- /dev/null +++ b/specification/sphere/Sphere.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.AzureSphere, "AzureSphereMgmt", "python"); diff --git a/specification/sphere/Sphere.Management/tspconfig.yaml b/specification/sphere/Sphere.Management/tspconfig.yaml index bf63825b931e..e66a5cf3ae11 100644 --- a/specification/sphere/Sphere.Management/tspconfig.yaml +++ b/specification/sphere/Sphere.Management/tspconfig.yaml @@ -32,6 +32,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-sphere" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-sphere" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/verifiedid/Microsoft.VerifiedId.Management/client.tsp b/specification/verifiedid/Microsoft.VerifiedId.Management/client.tsp new file mode 100644 index 000000000000..f1c6affb261e --- /dev/null +++ b/specification/verifiedid/Microsoft.VerifiedId.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.VerifiedId, "VerifiedIdMgmt", "python"); diff --git a/specification/verifiedid/Microsoft.VerifiedId.Management/tspconfig.yaml b/specification/verifiedid/Microsoft.VerifiedId.Management/tspconfig.yaml index 85da871d172c..a083f4e1d9f5 100644 --- a/specification/verifiedid/Microsoft.VerifiedId.Management/tspconfig.yaml +++ b/specification/verifiedid/Microsoft.VerifiedId.Management/tspconfig.yaml @@ -26,3 +26,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-verifiedid" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-verifiedid" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/vmware/Microsoft.AVS.Management/client.tsp b/specification/vmware/Microsoft.AVS.Management/client.tsp index be82e4135fec..50f820c087ac 100644 --- a/specification/vmware/Microsoft.AVS.Management/client.tsp +++ b/specification/vmware/Microsoft.AVS.Management/client.tsp @@ -6,3 +6,4 @@ using Azure.ResourceManager.CommonTypes; using Microsoft.AVS; @@clientName(Microsoft.AVS, "AzureVMwareSolutionAPI", "javascript"); +@@clientName(Microsoft.AVS, "AVS", "python"); diff --git a/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml b/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml index efa0ef297fd6..fe2fd1f902bf 100644 --- a/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml +++ b/specification/vmware/Microsoft.AVS.Management/tspconfig.yaml @@ -29,3 +29,9 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-avs" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-avs" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/client.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/client.tsp new file mode 100644 index 000000000000..0b8fdce2f50c --- /dev/null +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Workloads, "MigrationDiscoverySapMgmt", "python"); diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/tspconfig.yaml b/specification/workloads/Workloads.SAPDiscoverySite.Management/tspconfig.yaml index bcbb8611ed97..a18301d11a98 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/tspconfig.yaml +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/tspconfig.yaml @@ -23,6 +23,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-migrationdiscoverysap" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-migrationdiscoverysap" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/workloads/Workloads.SAPMonitor.Management/client.tsp b/specification/workloads/Workloads.SAPMonitor.Management/client.tsp new file mode 100644 index 000000000000..15f7cb6c1013 --- /dev/null +++ b/specification/workloads/Workloads.SAPMonitor.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Workloads, "SapMonitorsMgmt", "python"); diff --git a/specification/workloads/Workloads.SAPMonitor.Management/tspconfig.yaml b/specification/workloads/Workloads.SAPMonitor.Management/tspconfig.yaml index 69e347217743..9fe6be70d97e 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/tspconfig.yaml +++ b/specification/workloads/Workloads.SAPMonitor.Management/tspconfig.yaml @@ -24,6 +24,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-sapmonitors" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-sapmonitors" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp new file mode 100644 index 000000000000..499545372081 --- /dev/null +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp @@ -0,0 +1,6 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Workloads, "WorkloadsSapVirtualInstanceMgmt", "python"); diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml b/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml index e03f96ce8488..08ae490d3d9a 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml @@ -24,6 +24,12 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-workloadssapvirtualinstance" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-workloadssapvirtualinstance" + package-name: "{package-dir}" + flavor: "azure" + generate-test: true + generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From 7dc86c2ba8e9828ca6d271742ea1b42550f977c6 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Tue, 8 Oct 2024 17:52:03 +0800 Subject: [PATCH 14/22] fix tspconfigs format --- .../PlaywrightTesting.Management/client.tsp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp index e181d65bb076..cf450f6d3704 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/client.tsp @@ -3,4 +3,7 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; -@@clientName(Microsoft.AzurePlaywrightService, "PlaywrightTestingMgmt", "python"); +@@clientName(Microsoft.AzurePlaywrightService, + "PlaywrightTestingMgmt", + "python" +); From 6d9dcd02fc5047289173a140f7cbf566d03b32a6 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Tue, 8 Oct 2024 17:56:21 +0800 Subject: [PATCH 15/22] fix tspconfigs format --- .../mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml | 2 +- .../MpcNetworkFunction.Management/tspconfig.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml index 102ab00043fd..a4073bfda3dc 100644 --- a/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml +++ b/specification/mobilepacketcore/MobilePacketCore.Management/tspconfig.yaml @@ -34,4 +34,4 @@ options: package-name: "{package-dir}" flavor: "azure" generate-test: true - generate-sample: true \ No newline at end of file + generate-sample: true diff --git a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml index 6209cd48abbe..8ad012566ddf 100644 --- a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml +++ b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml @@ -35,4 +35,4 @@ options: package-name: "{package-dir}" flavor: "azure" generate-test: true - generate-sample: true \ No newline at end of file + generate-sample: true From a4429610e186f90bf0cd9496c82d90bb4f49f8e8 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 9 Oct 2024 09:56:26 +0800 Subject: [PATCH 16/22] Update tspconfig.yaml --- .../PlaywrightTesting.Management/tspconfig.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml index ce19576d9738..3e752cf6c1f7 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml +++ b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml @@ -22,9 +22,9 @@ options: omit-unreachable-types: true use-read-only-status-schema: true # "@azure-tools/typespec-providerhub-controller": -# azure-resource-provider-folder: "resource-manager" -# emitter-output-dir: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/generated" -# code-kind: model +# azure-resource-provider-folder: "resource-manager" +# emitter-output-dir: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/generated" +# code-kind: model "@azure-tools/typespec-ts": azureSdkForJs: true isModularLibrary: true From b21fbf5ee499ffa65fd20a5df00b4394582b892c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:25:02 +0800 Subject: [PATCH 17/22] Update tspconfig.yaml --- .../PlaywrightTesting.Management/tspconfig.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml index 4734102fdf3a..e6cec2cb0794 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml +++ b/specification/playwrighttesting/PlaywrightTesting.Management/tspconfig.yaml @@ -21,10 +21,10 @@ options: output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/playwrighttesting.json" omit-unreachable-types: true use-read-only-status-schema: true -# "@azure-tools/typespec-providerhub-controller": -# azure-resource-provider-folder: "resource-manager" -# emitter-output-dir: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/generated" -# code-kind: model + # "@azure-tools/typespec-providerhub-controller": + # azure-resource-provider-folder: "resource-manager" + # emitter-output-dir: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/generated" + # code-kind: model "@azure-tools/typespec-ts": azureSdkForJs: true isModularLibrary: true From 0464fca2f595058a5c0401f696a05369d9d4b8d9 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:33:37 +0800 Subject: [PATCH 18/22] update service-dir for qumulo for python --- .../liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml index 55afadaca3a5..45b26777f151 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml +++ b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml @@ -25,6 +25,7 @@ options: packageDetails: name: "@azure/arm-qumulo" "@azure-tools/typespec-python": + service-dir: "sdk/qumulo" package-dir: "azure-mgmt-qumulo" package-name: "{package-dir}" flavor: "azure" From c3cfe557ae9a37dde5c7f1ba232ce99f37087fbb Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:55:04 +0800 Subject: [PATCH 19/22] update namespace --- .../MpcNetworkFunction.Management/tspconfig.yaml | 6 +++--- .../resource-manager/readme.typescript.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml index 8ad012566ddf..738a2c21c549 100644 --- a/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml +++ b/specification/mpcnetworkfunction/MpcNetworkFunction.Management/tspconfig.yaml @@ -1,6 +1,6 @@ parameters: "service-dir": - default: "sdk/mobilecore" + default: "sdk/mpcnetworkfunction" emit: - "@azure-tools/typespec-autorest" linter: @@ -26,10 +26,10 @@ options: hierarchyClient: false experimentalExtensibleEnums: true enableOperationGroup: true - package-dir: "arm-mobilecore" + package-dir: "arm-mpcnetworkfunction" flavor: "azure" packageDetails: - name: "@azure/arm-mobilecore" + name: "@azure/arm-mpcnetworkfunction" "@azure-tools/typespec-python": package-dir: "azure-mgmt-mpcnetworkfunction" package-name: "{package-dir}" diff --git a/specification/mpcnetworkfunction/resource-manager/readme.typescript.md b/specification/mpcnetworkfunction/resource-manager/readme.typescript.md index 23f54761aed7..e9e8089bf83b 100644 --- a/specification/mpcnetworkfunction/resource-manager/readme.typescript.md +++ b/specification/mpcnetworkfunction/resource-manager/readme.typescript.md @@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder= Date: Wed, 9 Oct 2024 15:24:08 +0800 Subject: [PATCH 20/22] Update tspconfig.yaml --- .../liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml index 45b26777f151..55afadaca3a5 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml +++ b/specification/liftrqumulo/Qumulo.Storage.Management/tspconfig.yaml @@ -25,7 +25,6 @@ options: packageDetails: name: "@azure/arm-qumulo" "@azure-tools/typespec-python": - service-dir: "sdk/qumulo" package-dir: "azure-mgmt-qumulo" package-name: "{package-dir}" flavor: "azure" From 74990a28a82f6b2c7c015984c315bfef24af61f2 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:32:35 +0800 Subject: [PATCH 21/22] Delete specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp --- .../Workloads.SAPVirtualInstance.Management/client.tsp | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp deleted file mode 100644 index 499545372081..000000000000 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/client.tsp +++ /dev/null @@ -1,6 +0,0 @@ -import "./main.tsp"; -import "@azure-tools/typespec-client-generator-core"; - -using Azure.ClientGenerator.Core; - -@@clientName(Microsoft.Workloads, "WorkloadsSapVirtualInstanceMgmt", "python"); From 9f730fd52e48c9e604f212e0e69481df27c1fa99 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:33:09 +0800 Subject: [PATCH 22/22] Update tspconfig.yaml --- .../Workloads.SAPVirtualInstance.Management/tspconfig.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml b/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml index 08ae490d3d9a..e03f96ce8488 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/tspconfig.yaml @@ -24,12 +24,6 @@ options: flavor: "azure" packageDetails: name: "@azure/arm-workloadssapvirtualinstance" - "@azure-tools/typespec-python": - package-dir: "azure-mgmt-workloadssapvirtualinstance" - package-name: "{package-dir}" - flavor: "azure" - generate-test: true - generate-sample: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager"