Skip to content

Commit 163e27c

Browse files
authored
[Go] Add go track2 config (#19389)
* [Go] Add go track2 config * add powerplatform multi-api * other * fix * fix * cancel devspace * cancel iotspaces
1 parent 4124b7c commit 163e27c

File tree

27 files changed

+177
-48
lines changed

27 files changed

+177
-48
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Go
2+
3+
These settings apply only when `--go` is specified on the command line.
4+
5+
``` yaml $(go) && !$(track2)
6+
go:
7+
license-header: MICROSOFT_APACHE_NO_VERSION
8+
clear-output-folder: true
9+
namespace: addons
10+
```
11+
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/resourcemanager/addons/armaddons
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
```
19+
20+
21+
### Go multi-api
22+
23+
``` yaml $(go) && $(multiapi)
24+
batch:
25+
- tag: package-2018-03
26+
- tag: package-2017-05
27+
```
28+
29+
### Tag: package-2018-03 and go
30+
31+
These settings apply only when `--tag=package-2018-03 --go` is specified on the command line.
32+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
33+
34+
``` yaml $(tag)=='package-2018-03' && $(go)
35+
output-folder: $(go-sdk-folder)/services/preview/addons/mgmt/2018-03-01/addons
36+
```
37+
38+
### Tag: package-2017-05 and go
39+
40+
These settings apply only when `--tag=package-2017-05 --go` is specified on the command line.
41+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
42+
43+
``` yaml $(tag)=='package-2017-05' && $(go)
44+
output-folder: $(go-sdk-folder)/services/preview/addons/mgmt/2017-05-15/addons
45+
```
46+

specification/addons/resource-manager/readme.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ This is not used by Autorest itself.
5757

5858
``` yaml $(swagger-to-sdk)
5959
swagger-to-sdk:
60+
- repo: azure-sdk-for-go-track2
6061
- repo: azure-resource-manager-schemas
6162
- repo: azure-powershell
6263
```
@@ -106,41 +107,7 @@ python:
106107

107108
## Go
108109

109-
These settings apply only when `--go` is specified on the command line.
110-
111-
``` yaml $(go)
112-
go:
113-
license-header: MICROSOFT_APACHE_NO_VERSION
114-
clear-output-folder: true
115-
namespace: addons
116-
```
117-
118-
119-
### Go multi-api
120-
121-
``` yaml $(go) && $(multiapi)
122-
batch:
123-
- tag: package-2018-03
124-
- tag: package-2017-05
125-
```
126-
127-
### Tag: package-2018-03 and go
128-
129-
These settings apply only when `--tag=package-2018-03 --go` is specified on the command line.
130-
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
131-
132-
``` yaml $(tag)=='package-2018-03' && $(go)
133-
output-folder: $(go-sdk-folder)/services/preview/addons/mgmt/2018-03-01/addons
134-
```
135-
136-
### Tag: package-2017-05 and go
137-
138-
These settings apply only when `--tag=package-2017-05 --go` is specified on the command line.
139-
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
140-
141-
``` yaml $(tag)=='package-2017-05' && $(go)
142-
output-folder: $(go-sdk-folder)/services/preview/addons/mgmt/2017-05-15/addons
143-
```
110+
See configuration in [readme.go.md](./readme.go.md)
144111

145112
## Java
146113

specification/commerce/resource-manager/readme.go.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22

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

5-
``` yaml $(go)
5+
``` yaml $(go) && !$(track2)
66
go:
77
license-header: MICROSOFT_MIT_NO_VERSION
88
namespace: commerce
99
clear-output-folder: true
1010
```
1111
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/resourcemanager/commerce/armcommerce
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
modelerfour:
19+
lenient-model-deduplication: true
20+
```
21+
1222
### Go multi-api
1323
1424
``` yaml $(go) && $(multiapi)

specification/commerce/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ swagger-to-sdk:
6262
- repo: azure-sdk-for-python-track2
6363
- repo: azure-sdk-for-java
6464
- repo: azure-sdk-for-go
65+
- repo: azure-sdk-for-go-track2
6566
- repo: azure-sdk-for-js
6667
- repo: azure-sdk-for-node
6768
- repo: azure-sdk-for-ruby

specification/customer-insights/resource-manager/readme.go.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22

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

5-
``` yaml $(go)
5+
``` yaml $(go) && !$(track2)
66
go:
77
license-header: MICROSOFT_MIT_NO_VERSION
88
namespace: customerinsights
99
clear-output-folder: true
1010
```
1111
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/resourcemanager/customerinsights/armcustomerinsights
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
```
19+
1220
### Go multi-api
1321
1422
``` yaml $(go) && $(multiapi)

specification/customer-insights/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ This is not used by Autorest itself.
6363
swagger-to-sdk:
6464
- repo: azure-sdk-for-net
6565
- repo: azure-sdk-for-go
66+
- repo: azure-sdk-for-go-track2
6667
- repo: azure-sdk-for-js
6768
- repo: azure-sdk-for-node
6869
- repo: azure-sdk-for-ruby

specification/datamigration/resource-manager/readme.go.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22

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

5-
``` yaml $(go)
5+
``` yaml $(go) && !$(track2)
66
go:
77
license-header: MICROSOFT_MIT_NO_VERSION
88
clear-output-folder: true
99
namespace: datamigration
1010
```
1111
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/resourcemanager/datamigration/armdatamigration
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
```
19+
1220
### Go multi-api
1321
1422
``` yaml $(go) && $(multiapi)

specification/datamigration/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ swagger-to-sdk:
440440
- repo: azure-sdk-for-net
441441
- repo: azure-sdk-for-python-track2
442442
- repo: azure-sdk-for-go
443+
- repo: azure-sdk-for-go-track2
443444
- repo: azure-sdk-for-js
444445
- repo: azure-sdk-for-node
445446
- repo: azure-sdk-for-java

specification/dnc/resource-manager/readme.go.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22

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

5-
``` yaml $(go)
5+
``` yaml $(go) && !$(track2)
66
go:
77
license-header: MICROSOFT_MIT_NO_VERSION
88
clear-output-folder: true
99
namespace: delegatednetwork
1010
```
1111
12+
``` yaml $(go) && $(track2)
13+
license-header: MICROSOFT_MIT_NO_VERSION
14+
module-name: sdk/resourcemanager/delegatednetwork/armdelegatednetwork
15+
module: github.com/Azure/azure-sdk-for-go/$(module-name)
16+
output-folder: $(go-sdk-folder)/$(module-name)
17+
azure-arm: true
18+
```
19+
1220
### Go multi-api
1321
1422
``` yaml $(go) && $(multiapi)

specification/dnc/resource-manager/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ swagger-to-sdk:
7272
- repo: azure-sdk-for-python-track2
7373
- repo: azure-sdk-for-java
7474
- repo: azure-sdk-for-go
75+
- repo: azure-sdk-for-go-track2
7576
- repo: azure-sdk-for-js
7677
- repo: azure-powershell
7778
```

0 commit comments

Comments
 (0)