Skip to content

Commit

Permalink
Fix errors in various of readme files encountered in the recent go SD…
Browse files Browse the repository at this point in the history
…K release (Azure#11826)

* Fix an issue on windows

* Fix cdn

* Fix cognitiveservices/customVision

* Fix cognitiveservices/personalizer

* Fix cognitiveservices/translatorText

* Fix data plane digitaltwins

* Remove problematic tag from release - no impact on sdk, this has never been released

* amend Fix cognitiveservices/translatorText

* Fix imds

* Fix migrate readme that are mistakenly damaged in Azure#10305

* add one api-version back

* Fix digtaltwins data plane again

* Fix hybridnetwork

* Fix streamanlytics

* Revert some changes of digitaltwins

* Revert imds

* Fix migrate

* Fix migrate again
  • Loading branch information
ArcturusZhang authored and giromm2ms committed Dec 20, 2020
1 parent f4253fe commit af87c5f
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ These settings apply only when `--tag=package-2014-01` is specified on the comma

``` yaml $(tag) == 'package-2014-01'
input-file:
- Microsoft.ADHybridHealthService\stable\2014-01-01\ADHybridHealthService.json
- Microsoft.ADHybridHealthService/stable/2014-01-01/ADHybridHealthService.json
```

---
Expand Down
10 changes: 10 additions & 0 deletions specification/azuredata/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2017-03-01-preview
- tag: package-preview-2019-07
```
### Tag: package-2017-03-01-preview and go
These settings apply only when `--tag=package-2017-03-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-2017-03-01-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2017-03-01-preview/$(namespace)
```

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

These settings apply only when `--tag=package-preview-2019-07 --go` is specified on the command line.
Expand Down
9 changes: 9 additions & 0 deletions specification/cdn/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-04-15/$(namespace)
```

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

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

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

These settings apply only when `--tag=package-2019-04 --go` is specified on the command line.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.0/customvision/$(n
These settings apply only when `--tag=release_3_1 --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) == 'release_3_0' && $(go)
``` yaml $(tag) == 'release_3_1' && $(go)
output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.1/customvision/$(namespace)
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ These settings apply only when `--tag=release_1_0 --go` is specified on the comm
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

```yaml $(tag) == 'release_1_0' && $(go)
output-folder: $(go-sdk-folder)/services/preview/personalizer/v1.0/$(namespace)
output-folder: $(go-sdk-folder)/services/personalizer/v1.0/$(namespace)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Go

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

``` yaml $(go)
go:
license-header: MICROSOFT_APACHE_NO_VERSION
namespace: translatortext
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: release_3_0
- tag: release_1_0_preview.1
```
### Tag: release_1_0_preview.1 and go
These settings apply only when `--tag=release_1_0_preview.1 --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) == 'release_1_0_preview.1' && $(go)
output-folder: $(go-sdk-folder)/services/preview/cognitiveservices/v1.0_preview.1/$(namespace)
```

### Tag: release_3_0 and go

These settings apply only when `--tag=release_3_0 --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) == 'release_3_0' && $(go)
output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.0/$(namespace)
```
Original file line number Diff line number Diff line change
Expand Up @@ -91,39 +91,8 @@ python:

## Go

These settings apply only when `--go` is specified on the command line.
See configuration in [readme.go.md](./readme.go.md)

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

### Go multi-api

``` yaml $(go) && $(multiapi)
batch:
- tag: release_3_0
- tag: release_1_0_preview.1
```
### Tag: release_1_0_preview.1 and go

These settings apply only when `--tag=release_1_0_preview.1 --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) == 'release_1_0_preview.1' && $(go)
output-folder: $(go-sdk-folder)/services/cognitiveservices/v1.0_preview.1/$(namespace)
```

### Tag: release_3_0 and go

These settings apply only when `--tag=release_3_0 --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) == 'release_3_0' && $(go)
output-folder: $(go-sdk-folder)/services/cognitiveservices/v3.0/$(namespace)
```
## Java

These settings apply only when `--java` is specified on the command line.
Expand Down
9 changes: 8 additions & 1 deletion specification/digitaltwins/data-plane/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ go:
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-05-31-preview
```
### Tag: package-2020-05-31-preview and go
These settings apply only when `--tag=package-2020-05-31-preview --go` is specified on the command line.
Please also specify `--go-sdks-folder=<path to the root directory of your azure-sdk-for-go clone>`.

```yaml $(tag) == 'package-2020-05-31-preview' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/2020-05-31/$(namespace)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/2020-05-31-preview/$(namespace)
```
2 changes: 1 addition & 1 deletion specification/hybridnetwork/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Please also specify `--go-sdks-folder=<path to the root directory of your azure-

```yaml $(tag) == 'package-2020-01-01-preview' && $(go)
namespace: hybridnetwork
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/management/2020-01-01-preview/$(namespace)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-01-01-preview/$(namespace)
```
12 changes: 1 addition & 11 deletions specification/migrate/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ go:
batch:
- tag: package-2018-02
- tag: package-2020-01
- tag: package-2020-07
```
### Tag: package-2018-02 and go
Expand All @@ -33,14 +32,5 @@ These settings apply only when `--tag=package-2020-01 --go` is specified on the
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag)=='package-2020-01' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-01-01/$(namespace)
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-01-01/$(namespace)
```

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

These settings apply only when `--tag=package-2020-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-2020-07' && $(go)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-07-07/$(namespace)
```
5 changes: 5 additions & 0 deletions specification/migrate/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ To see additional help and options, run:

These are the global settings for the API.

``` yaml
openapi-type: arm
tag: package-2018-09
```

### Tag: package-2018-02

These settings apply only when `--tag=package-2018-02` is specified on the command line.
Expand Down
10 changes: 0 additions & 10 deletions specification/monitor/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ batch:
- tag: package-2019-03
- tag: package-2019-06
- tag: package-2019-11-01-preview-only
- tag: package-2020-03
```
### Tag: package-2017-09 and go
Expand Down Expand Up @@ -85,12 +84,3 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
``` yaml $(tag) == 'package-2019-11-01-preview-only' && $(go)
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2019-11-01-preview/$(namespace)
```

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

These settings apply only when `--tag=package-2020-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-2020-03' && $(go)
output-folder: $(go-sdk-folder)/services/preview/monitor/mgmt/2020-03-01-preview/$(namespace)
```
10 changes: 1 addition & 9 deletions specification/streamanalytics/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-pure-2016-03
- tag: package-2020-03-preview
```
Expand All @@ -25,15 +26,6 @@ Please also specify `--go-sdk-folder=<path to the root directory of your azure-s
output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2016-03-01/$(namespace)
```

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

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

### Tag: package-2020-03-preview and go

These settings apply only when `--tag=package-2020-03-preview --go` is specified on the command line.
Expand Down

0 comments on commit af87c5f

Please sign in to comment.