Skip to content

Commit fb6e96b

Browse files
[azurestackhcivm] Update tsp config (#35961)
* Create client.tsp * Update tspconfig.yaml * Update tspconfig.yaml * Update tspconfig.yaml * update config * Update tspconfig.yaml * Update client.tsp * Update cspell.yaml --------- Co-authored-by: Chenjie Shi <[email protected]> Co-authored-by: ReleaseHelper <ReleaseHelper>
1 parent 54b1fe1 commit fb6e96b

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import "./main.tsp";
2+
import "@azure-tools/typespec-client-generator-core";
3+
4+
using Azure.ClientGenerator.Core;
5+
6+
@@clientName(Microsoft.AzureStackHCI, "AzureStackHCIVmClient", "python");

specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
parameters:
2+
"service-dir":
3+
default: "sdk/azurestackhcivm"
14
emit:
25
- "@azure-tools/typespec-autorest"
36
options:
@@ -9,6 +12,23 @@ options:
912
# `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag
1013
arm-resource-flattening: true
1114
output-file: "{azure-resource-provider-folder}/{service-name}/StackHCIVM/{version-status}/{version}/stackhcivm.json"
15+
"@azure-tools/typespec-python":
16+
service-dir: "sdk/azurestackhci"
17+
package-dir: "azure-mgmt-azurestackhcivm"
18+
namespace: "azure.mgmt.azurestackhcivm"
19+
flavor: "azure"
20+
generate-test: true
21+
generate-sample: true
22+
"@azure-tools/typespec-go":
23+
service-dir: "sdk/resourcemanager/azurestackhci"
24+
package-dir: "armazurestackhcivm"
25+
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
26+
fix-const-stuttering: true
27+
flavor: "azure"
28+
generate-samples: true
29+
generate-fakes: true
30+
head-as-boolean: true
31+
inject-spans: true
1232
linter:
1333
extends:
1434
- "@azure-tools/typespec-azure-rulesets/resource-manager"

specification/azurestackhci/cspell.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ words:
2727
- vhds
2828
- vhdx
2929
- wdac
30+
- azurestackhcivm
31+
- armazurestackhcivm
3032
overrides:
3133
- filename: >-
3234
**/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp

0 commit comments

Comments
 (0)