Skip to content

Commit

Permalink
Extract go sdk configuration (Azure#4089)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Barosan authored and fearthecowboy committed Oct 9, 2018
1 parent 3ae3618 commit 0e1e985
Show file tree
Hide file tree
Showing 228 changed files with 4,870 additions and 4,730 deletions.
46 changes: 46 additions & 0 deletions specification/advisor/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Go

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

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

### Tag: package-2017-03 and go

These settings apply only when `--tag=package-2017-03 --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-2017-03' && $(go)
output-folder: $(go-sdk-folder)/services/advisor/mgmt/2017-03-31/advisor
```

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

These settings apply only when `--tag=package-2016-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-2016-07-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/advisor/mgmt/2016-07-12-preview/advisor
```
52 changes: 3 additions & 49 deletions specification/advisor/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ python:
output-folder: $(python-sdks-folder)/azure-mgmt-advisor
```

## Go

See configuration in [readme.go.md](./readme.go.md)

## C#

Expand All @@ -120,55 +123,6 @@ csharp:
clear-output-folder: true
```


## Go

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

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

### Go multi-api

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2017-04
- tag: package-2017-03
- tag: package-2016-07-preview
```

### Tag: package-2017-04 and go

These settings apply only when `--tag=package-2017-04 --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-2017-04' && $(go)
output-folder: $(go-sdk-folder)/services/advisor/mgmt/2017-04-19/advisor
```

### Tag: package-2017-03 and go

These settings apply only when `--tag=package-2017-03 --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-2017-03' && $(go)
output-folder: $(go-sdk-folder)/services/advisor/mgmt/2017-03-31/advisor
```

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

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


## Java

These settings apply only when `--java` is specified on the command line.
Expand Down
25 changes: 25 additions & 0 deletions specification/alertsmanagement/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Go

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

``` yaml $(go)
go:
license-header: MICROSOFT_APACHE_NO_VERSION
namespace: alertsmanagement
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-05-preview
```
### Tag: package-2018-05-preview and go
These settings apply only when `--tag=package-2018-05-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-05-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-05-05-preview/$(namespace)
```
33 changes: 5 additions & 28 deletions specification/alertsmanagement/resource-manager/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# AlertsManagement

> see https://aka.ms/autorest
This is the AutoRest configuration file for AlerManagement.


---
## Getting Started
## Getting Started
To build the SDK for AlertManagement, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -19,7 +19,7 @@ To see additional help and options, run:
## Configuration


### Basic Information
### Basic Information
These are the global settings for the AlertManagement API.

``` yaml
Expand Down Expand Up @@ -62,7 +62,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-go
```

## C#
## C#

These settings apply only when `--csharp` is specified on the command line.
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.
Expand Down Expand Up @@ -103,32 +103,9 @@ python:
output-folder: $(python-sdks-folder)/azure-mgmt-alertsmanagement
```


## Go

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

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

### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-05-preview
```

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

These settings apply only when `--tag=package-2018-05-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-05-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-05-05-preview/$(namespace)
```
See configuration in [readme.go.md](./readme.go.md)

## Java

Expand Down
56 changes: 56 additions & 0 deletions specification/analysisservices/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: analysisservices
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2017-08
- tag: package-2017-08-beta
- tag: package-2017-07
- tag: package-2016-05
```
### Tag: package-2017-08 and go
These settings apply only when `--tag=package-2017-08 --go` is specifined 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-2017-08' && $(go)
output-folder: $(go-sdk-folder)/services/analysisservices/mgmt/2017-08-01/analysisservices
```

### Tag: package-2017-08-beta and go

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

### Tag: package-2017-07 and go

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

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

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

0 comments on commit 0e1e985

Please sign in to comment.