Skip to content

Commit 240af19

Browse files
Update configuration files to use TypeSpec
1 parent f4159bc commit 240af19

File tree

7 files changed

+40
-117
lines changed

7 files changed

+40
-117
lines changed

specification/resources/Bicep.Management/tspconfig.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
parameters:
2+
"service-dir":
3+
default: "sdk/resources"
14
emit:
25
- "@azure-tools/typespec-autorest"
36
options:
@@ -7,6 +10,39 @@ options:
710
azure-resource-provider-folder: "resource-manager"
811
output-file: "{azure-resource-provider-folder}/Microsoft.Resources/bicep/{version-status}/{version}/bicepClient.json"
912
examples-dir: "{project-root}/examples"
13+
"@azure-tools/typespec-csharp":
14+
flavor: azure
15+
package-dir: "Azure.ResourceManager.Resources.Bicep"
16+
clear-output-folder: true
17+
model-namespace: true
18+
namespace: "{package-dir}"
19+
"@azure-tools/typespec-python":
20+
package-dir: "azure-mgmt-resources-bicep"
21+
namespace: "azure.mgmt.resources.bicep"
22+
generate-test: true
23+
generate-sample: true
24+
flavor: "azure"
25+
"@azure-tools/typespec-java":
26+
package-dir: "azure-resourcemanager-resources-bicep"
27+
namespace: "com.azure.resourcemanager.resources.bicep"
28+
service-name: "Bicep Provider"
29+
flavor: azure
30+
"@azure-tools/typespec-ts":
31+
package-dir: "arm-resourcesbicep"
32+
flavor: azure
33+
experimental-extensible-enums: true
34+
package-details:
35+
name: "@azure/arm-resourcesbicep"
36+
"@azure-tools/typespec-go":
37+
service-dir: "sdk/resourcemanager/resources"
38+
package-dir: "armbicep"
39+
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
40+
fix-const-stuttering: true
41+
flavor: "azure"
42+
generate-samples: true
43+
generate-fakes: true
44+
head-as-boolean: true
45+
inject-spans: true
1046
linter:
1147
extends:
1248
- "@azure-tools/typespec-azure-rulesets/resource-manager"

specification/resources/resource-manager/Microsoft.Resources/bicep/readme.csharp.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

specification/resources/resource-manager/Microsoft.Resources/bicep/readme.go.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

specification/resources/resource-manager/Microsoft.Resources/bicep/readme.java.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
# Bicep
22

33
> see https://aka.ms/autorest
4-
5-
This is the AutoRest configuration file for Bicep.
4+
This is the AutoRest configuration file.
65

76
## Getting Started
87

9-
To build the SDKs for Bicep, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
8+
To build the SDKs, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
109

1110
> `autorest readme.md`
12-
1311
To see additional help and options, run:
1412

1513
> `autorest --help`
16-
1714
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
1815

1916
---
@@ -22,7 +19,7 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor
2219

2320
### Basic Information
2421

25-
These are the global settings for the Bicep client.
22+
These are the global settings.
2623

2724
``` yaml
2825
title: BicepClient
@@ -31,8 +28,6 @@ openapi-type: arm
3128
tag: package-2023-11
3229
```
3330
34-
---
35-
3631
### Tag: package-2023-11
3732
3833
These settings apply only when `--tag=package-2023-11` is specified on the command line.
@@ -49,41 +44,4 @@ directive:
4944
- suppress: OperationsAPIImplementation
5045
from: bicepClient.json
5146
reason: Operations API is implemented as a separate service.
52-
```
53-
54-
# Code Generation
55-
56-
## Swagger to SDK
57-
58-
This section describes what SDK should be generated by the automatic system.
59-
This is not used by Autorest itself.
60-
61-
``` yaml $(swagger-to-sdk)
62-
swagger-to-sdk:
63-
- repo: azure-sdk-for-net
64-
- repo: azure-sdk-for-python
65-
- repo: azure-sdk-for-java
66-
- repo: azure-sdk-for-go
67-
- repo: azure-sdk-for-js
68-
- repo: azure-powershell
69-
```
70-
71-
## CSharp
72-
73-
See configuration in [readme.csharp.md](./readme.csharp.md)
74-
75-
## Go
76-
77-
See configuration in [readme.go.md](./readme.go.md)
78-
79-
## Java
80-
81-
See configuration in [readme.java.md](./readme.java.md)
82-
83-
## Python
84-
85-
See configuration in [readme.python.md](./readme.python.md)
86-
87-
## TypeScript
88-
89-
See configuration in [readme.typescript.md](./readme.typescript.md)
47+
```

specification/resources/resource-manager/Microsoft.Resources/bicep/readme.python.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

specification/resources/resource-manager/Microsoft.Resources/bicep/readme.typescript.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)