Skip to content

Commit

Permalink
mgmt, codesigning, update tspconfig (#30744)
Browse files Browse the repository at this point in the history
* mgmt, codesigning, update tspconfig

* Update python config

* Update tspconfig.yaml

* update client name for python

* Update client.tsp

* Update tspconfig.yaml

* Update tspconfig.yaml for go

---------

Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com>
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
  • Loading branch information
5 people authored Sep 27, 2024
1 parent 2a32948 commit 1398407
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions specification/codesigning/CodeSigning.Management/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;

@@clientName(Microsoft.CodeSigning, "TrustedSigningMgmt", "python");
@@clientName(Microsoft.CodeSigning, "TrustedSigningManagementClient", "java");
36 changes: 36 additions & 0 deletions specification/codesigning/CodeSigning.Management/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
"service-dir":
default: "sdk/trustedsigning"
emit:
- "@azure-tools/typespec-autorest"
options:
Expand All @@ -9,6 +12,39 @@ 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}/codeSigningAccount.json"
"@azure-tools/typespec-java":
package-dir: "azure-resourcemanager-trustedsigning"
flavor: "azure"
namespace: "com.azure.resourcemanager.trustedsigning"
service-name: "Trusted Signing"
"@azure-tools/typespec-python":
package-dir: "azure-mgmt-trustedsigning"
package-name: "{package-dir}"
flavor: "azure"
generate-test: true
generate-sample: true
"@azure-tools/typespec-ts":
azureSdkForJs: true
isModularLibrary: true
generateMetadata: true
hierarchyClient: false
experimentalExtensibleEnums: true
enableOperationGroup: true
package-dir: "arm-trustedsigning"
flavor: "azure"
packageDetails:
name: "@azure/arm-trustedsigning"
"@azure-tools/typespec-go":
service-dir: "sdk/resourcemanager/trustedsigning"
package-dir: "armtrustedsigning"
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
fix-const-stuttering: true
flavor: "azure"
generate-examples: true
generate-fakes: true
head-as-boolean: true
inject-spans: true
remove-unreferenced-types: true
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"

0 comments on commit 1398407

Please sign in to comment.