Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Go]Track2 modify readme.go.md 11 #17099

Merged
merged 6 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion specification/customproviders/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,28 @@

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

```yaml $(go)
```yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: customproviders
clear-output-folder: true
```

``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/customproviders/armcustomproviders
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```

### Go multi-api

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-09-01-preview
```

### Tag: package-2018-09-01-preview and go

These settings apply only when `--tag=package-2018-09-01-preview --go` is specified on the command line.
Expand Down
1 change: 1 addition & 0 deletions specification/customproviders/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-trenton
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
Expand Down
10 changes: 9 additions & 1 deletion specification/datadog/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

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

``` yaml $(go)
``` yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: datadog
clear-output-folder: true
```

``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/datadog/armdatadog
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```

### Go multi-api

``` yaml $(go) && $(multiapi)
Expand Down
1 change: 1 addition & 0 deletions specification/datadog/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-sdk-for-ruby
Expand Down
10 changes: 9 additions & 1 deletion specification/logz/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

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

```yaml $(go)
```yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
namespace: logz
clear-output-folder: true
```

``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/logz/armlogz
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
```

### Go multi-api

``` yaml $(go) && $(multiapi)
Expand Down
1 change: 1 addition & 0 deletions specification/logz/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-js
- repo: azure-resource-manager-schemas
- repo: azure-cli-extensions
Expand Down
24 changes: 22 additions & 2 deletions specification/saas/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,38 @@

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

```yaml $(go)
```yaml $(go) && !$(track2)
go:
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
```

``` yaml $(go) && $(track2)
license-header: MICROSOFT_MIT_NO_VERSION
module-name: sdk/resourcemanager/saas/armsaas
module: github.com/Azure/azure-sdk-for-go/$(module-name)
output-folder: $(go-sdk-folder)/$(module-name)
azure-arm: true
directive:
from: saas.json
where: $.paths["/providers/Microsoft.SaaS/saasresources/{resourceId}/listAccessToken"].post
transform: >
$["operationId"] = "SaasResources_listAccessToken"
```

### Go multi-api

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-03-01-beta
```

### Tag: package-2018-03-01-beta and go

These settings apply only when `--tag=package-2018-03-01-beta --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-2018-03-01-beta' && $(go)
namespace: saas
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-03-01-beta/$(namespace)
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2018-03-01-preview/$(namespace)
```
1 change: 1 addition & 0 deletions specification/saas/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-go-track2
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
after_scripts:
Expand Down