Skip to content

Commit

Permalink
added go track 1 (Azure#7045)
Browse files Browse the repository at this point in the history
* added go track 1

* add go track1 sdk automation

* added multiAPI config

* updated directory structure

* Update specification/workloads/resource-manager/readme.go.md

updated sdk path

Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>

Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
  • Loading branch information
gargankit-microsoft and tadelesh authored Apr 29, 2022
1 parent 0592682 commit db71f84
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions specification/workloads/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,33 @@

These settings apply only when `--go` is specified on the command line.

``` yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: workloads
clear-output-folder: true
```
```yaml $(go) && $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/workloads/armworkloads
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2021-12-01-preview
```
### Tag: package-2021-12-01-preview and go
These settings apply only when `--tag=package-2021-12-01-preview --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2021-12-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-12-01-preview/$(namespace)
```
1 change: 1 addition & 0 deletions specification/workloads/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This is not used by Autorest itself.
swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-net
Expand Down

0 comments on commit db71f84

Please sign in to comment.