From 637cebb38d15f63f96fab9cd7ec75f9f661f12b6 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Fri, 21 Feb 2020 12:41:39 +0800 Subject: [PATCH] Add config for go for service synapse --- .../synapse/resource-manager/readme.go.md | 26 +++++++++++++++++++ .../synapse/resource-manager/readme.md | 5 ++++ 2 files changed, 31 insertions(+) create mode 100644 specification/synapse/resource-manager/readme.go.md diff --git a/specification/synapse/resource-manager/readme.go.md b/specification/synapse/resource-manager/readme.go.md new file mode 100644 index 000000000000..32298c57e93c --- /dev/null +++ b/specification/synapse/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: synapse + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2019-06-01-preview +``` + +### Tag: package-2019-06-01-preview and go + +These settings apply only when `--tag=package-2019-06-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2019-06-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2019-06-01-preview/$(namespace) +``` \ No newline at end of file diff --git a/specification/synapse/resource-manager/readme.md b/specification/synapse/resource-manager/readme.md index b881cf353fbb..e9abe3f4aa3e 100644 --- a/specification/synapse/resource-manager/readme.md +++ b/specification/synapse/resource-manager/readme.md @@ -75,6 +75,7 @@ swagger-to-sdk: - repo: azure-sdk-for-js - repo: azure-sdk-for-java - repo: azure-sdk-for-python + - repo: azure-sdk-for-go ``` ## Python @@ -98,6 +99,10 @@ csharp: clear-output-folder: true ``` +## Go + +See configuration in [readme.go.md](./readme.go.md) + ## Multi-API/Profile support for AutoRest v3 generators AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.