From 5d3fea6469bda2bee95f1bec4f22a8474783fb48 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Mon, 27 Aug 2018 15:59:09 -0700 Subject: [PATCH] Fix Go SDK codegen for containerinstance The package-2018-06 tag was incorrecly using the 2018-04 tag. Moved Go SDK config section to its own config file. --- .../resource-manager/readme.go.md | 76 ++++++++++++++++++ .../resource-manager/readme.md | 79 ------------------- 2 files changed, 76 insertions(+), 79 deletions(-) create mode 100644 specification/containerinstance/resource-manager/readme.go.md diff --git a/specification/containerinstance/resource-manager/readme.go.md b/specification/containerinstance/resource-manager/readme.go.md new file mode 100644 index 000000000000..1b42e90c871b --- /dev/null +++ b/specification/containerinstance/resource-manager/readme.go.md @@ -0,0 +1,76 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: containerinstance + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-06 + - tag: package-2018-04 + - tag: package-2018-02-preview + - tag: package-2017-12-preview + - tag: package-2017-10-preview + - tag: package-2017-08-preview +``` + +### Tag: package-2018-06 and go + +These settings apply only when `--tag=package-2018-06 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-06' && $(go) +output-folder: $(go-sdk-folder)/services/containerinstance/mgmt/2018-06-01/containerinstance +``` + +### Tag: package-2018-04 and go + +These settings apply only when `--tag=package-2018-04 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-04' && $(go) +output-folder: $(go-sdk-folder)/services/containerinstance/mgmt/2018-04-01/containerinstance +``` + +### Tag: package-2018-02-preview and go + +These settings apply only when `--tag=package-2018-02-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-02-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance +``` + +### Tag: package-2017-12-preview and go + +These settings apply only when `--tag=package-2017-12-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-12-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance +``` + +### Tag: package-2017-10-preview and go + +These settings apply only when `--tag=package-2017-10-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-10-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance +``` + +### Tag: package-2017-08-preview and go + +These settings apply only when `--tag=package-2017-08-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2017-08-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance +``` diff --git a/specification/containerinstance/resource-manager/readme.md b/specification/containerinstance/resource-manager/readme.md index 7186c97efae9..a9c9d1c113c8 100644 --- a/specification/containerinstance/resource-manager/readme.md +++ b/specification/containerinstance/resource-manager/readme.md @@ -151,85 +151,6 @@ python: output-folder: $(python-sdks-folder)/azure-mgmt-containerinstance ``` - -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_APACHE_NO_VERSION - namespace: containerinstance - clear-output-folder: true -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-2018-06 - - tag: package-2018-04 - - tag: package-2018-02-preview - - tag: package-2017-12-preview - - tag: package-2017-10-preview - - tag: package-2017-08-preview -``` - -### Tag: package-2018-06 and go - -These settings apply only when `--tag=package-2018-06 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2018-04' && $(go) -output-folder: $(go-sdk-folder)/services/containerinstance/mgmt/2018-06-01/containerinstance -``` - -### Tag: package-2018-04 and go - -These settings apply only when `--tag=package-2018-04 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2018-04' && $(go) -output-folder: $(go-sdk-folder)/services/containerinstance/mgmt/2018-04-01/containerinstance -``` - -### Tag: package-2018-02-preview and go - -These settings apply only when `--tag=package-2018-02-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2018-02-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2018-02-01-preview/containerinstance -``` - -### Tag: package-2017-12-preview and go - -These settings apply only when `--tag=package-2017-12-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2017-12-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-12-01-preview/containerinstance -``` - -### Tag: package-2017-10-preview and go - -These settings apply only when `--tag=package-2017-10-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2017-10-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-10-01-preview/containerinstance -``` - -### Tag: package-2017-08-preview and go - -These settings apply only when `--tag=package-2017-08-preview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2017-08-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/containerinstance/mgmt/2017-08-01-preview/containerinstance -``` - - ## Java These settings apply only when `--java` is specified on the command line.