Skip to content

Commit

Permalink
[Go]Track2 modify readme.go.md 11 (#17099)
Browse files Browse the repository at this point in the history
* [Go]Track2 modify readme.go.md 11

* add go multiapi

* remove addons

* add directive

* fix

* beta to preview output-folder
  • Loading branch information
Alancere authored Dec 16, 2021
1 parent d600759 commit df2d8df
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 5 deletions.
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

0 comments on commit df2d8df

Please sign in to comment.