Skip to content

Commit 97af032

Browse files
refactor - move go configuration to its standalone file (Azure#12641)
1 parent 7170031 commit 97af032

File tree

2 files changed

+41
-39
lines changed

2 files changed

+41
-39
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Go
2+
3+
These settings apply only when `--go` is specified on the command line.
4+
5+
``` yaml $(go)
6+
go:
7+
license-header: MICROSOFT_APACHE_NO_VERSION
8+
namespace: purview
9+
clear-output-folder: true
10+
```
11+
## Suppression
12+
13+
``` yaml
14+
directive:
15+
- suppress: R3018 # EnumInsteadOfBoolean
16+
where:
17+
- $.definitions.CheckNameAvailabilityResult.properties.nameAvailable
18+
- $.definitions.DimensionProperties.properties.toBeExportedForCustomer
19+
reason:
20+
- Check name model is set by ARM team https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/proxy-api-reference.md#check-name-availability-requests
21+
- suppress: R4009 # RequiredSystemDataInNewApiVersions
22+
reason:
23+
- We do not yet support systemdata
24+
```
25+
26+
### Go multi-api
27+
28+
``` yaml $(go) && $(multiapi)
29+
batch:
30+
- tag: package-2020-12-01-preview
31+
```
32+
33+
### Tag: package-2020-12-01-preview and go
34+
35+
These settings apply only when `--tag=package-2020-12-01-preview --go` is specified on the command line.
36+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
37+
38+
``` yaml $(tag) == 'package-2020-12-01-preview' && $(go)
39+
output-folder: $(go-sdk-folder)/services/preview/purview/mgmt/2020-12-01-preview/$(namespace)
40+
```

specification/purview/resource-manager/readme.md

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -96,44 +96,6 @@ python:
9696
output-folder: $(python-sdks-folder)/purview/azure-mgmt-purview
9797
```
9898

99-
10099
## Go
101100

102-
These settings apply only when `--go` is specified on the command line.
103-
104-
``` yaml $(go)
105-
go:
106-
license-header: MICROSOFT_APACHE_NO_VERSION
107-
namespace: purview
108-
clear-output-folder: true
109-
```
110-
## Suppression
111-
112-
``` yaml
113-
directive:
114-
- suppress: R3018 # EnumInsteadOfBoolean
115-
where:
116-
- $.definitions.CheckNameAvailabilityResult.properties.nameAvailable
117-
- $.definitions.DimensionProperties.properties.toBeExportedForCustomer
118-
reason:
119-
- Check name model is set by ARM team https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/proxy-api-reference.md#check-name-availability-requests
120-
- suppress: R4009 # RequiredSystemDataInNewApiVersions
121-
reason:
122-
- We do not yet support systemdata
123-
```
124-
125-
### Go multi-api
126-
127-
``` yaml $(go) && $(multiapi)
128-
batch:
129-
- tag: package-2020-12-01-preview
130-
```
131-
132-
### Tag: package-2020-12-01-preview and go
133-
134-
These settings apply only when `--tag=package-2020-12-01-preview --go` is specified on the command line.
135-
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
136-
137-
``` yaml $(tag) == 'package-2020-12-01-preview' && $(go)
138-
output-folder: $(go-sdk-folder)/services/preview/purview/mgmt/2020-12-01-preview/$(namespace)
139-
```
101+
See configuration in [readme.go.md](./readme.go.md)

0 commit comments

Comments
 (0)