Skip to content

Commit

Permalink
Fix Go SDK codegen for logic (#3736)
Browse files Browse the repository at this point in the history
Moved preview codegen under the preview subdirectory.
Moved Go SDK config to its own config file.
  • Loading branch information
jhendrixMSFT authored Aug 28, 2018
1 parent db952e0 commit 2e9c081
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 59 deletions.
56 changes: 56 additions & 0 deletions specification/logic/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## Go

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

``` yaml $(go)
go:
license-header: MICROSOFT_APACHE_NO_VERSION
namespace: logic
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-07-preview
- tag: package-2016-06
- tag: package-2015-08-preview
- tag: package-2015-02-preview
```
### Tag: package-2018-07-preview and go
These settings apply only when `--tag=package-2018-07-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-2018-07-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/logic/mgmt/package-2018-07-preview/logic
```

### Tag: package-2016-06 and go

These settings apply only when `--tag=package-2016-06 --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-2016-06' && $(go)
output-folder: $(go-sdk-folder)/services/logic/mgmt/2016-06-01/logic
```

### Tag: package-2015-08-preview and go

These settings apply only when `--tag=package-2015-08-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-2015-08-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/logic/mgmt/2015-08-01-preview/logic
```

### Tag: package-2015-02-preview and go

These settings apply only when `--tag=package-2015-02-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-2015-02-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/logic/mgmt/2015-02-01-preview/logic
```
59 changes: 0 additions & 59 deletions specification/logic/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,65 +140,6 @@ python:
output-folder: $(python-sdks-folder)/azure-mgmt-logic
```


## Go

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

``` yaml $(go)
go:
license-header: MICROSOFT_APACHE_NO_VERSION
namespace: logic
clear-output-folder: true
```

### Go multi-api

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-07-preview
- tag: package-2016-06
- tag: package-2015-08-preview
- tag: package-2015-02-preview
```

### Tag: package-2018-07-preview and go

These settings apply only when `--tag=package-2018-07-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-2018-07-preview' && $(go)
output-folder: $(go-sdk-folder)/services/logic/mgmt/package-2018-07-preview/logic
```

### Tag: package-2016-06 and go

These settings apply only when `--tag=package-2016-06 --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-2016-06' && $(go)
output-folder: $(go-sdk-folder)/services/logic/mgmt/2016-06-01/logic
```

### Tag: package-2015-08-preview and go

These settings apply only when `--tag=package-2015-08-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-2015-08-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/logic/mgmt/2015-08-01-preview/logic
```

### Tag: package-2015-02-preview and go

These settings apply only when `--tag=package-2015-02-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-2015-02-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/logic/mgmt/2015-02-01-preview/logic
```


## Java

These settings apply only when `--java` is specified on the command line.
Expand Down

0 comments on commit 2e9c081

Please sign in to comment.