autorest.go

module
v0.0.0-...-4a6d4ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT

README

Issues

Please file issues in one of the following repositories as appropriate:

  • Azure/autorest.go : When the generated Go code is broken in some way or could be improved.
  • Azure/azure-sdk-for-go : When you're experiencing trouble with the Go SDK, but not with other languages, this is the repository to report bugs to. i.e. What we generate for Long Running Operations doesn't make sense or there's something hard coded that shouldn't be.
  • Azure/go-autorest : File bugs here when your troubles aren't related to a particular operation, or even the pattern of generation, but the core infrastructure that we use to build HTTP request or authenticate. i.e. Retry or Authentication aren't working the way you wanted.
  • Azure/autorest : Should you run into duplicated types, or fundamentally flawed enums, and it seems consistent across languages, but doesn't seem like the problems lies with the actual Azure Service, the problem could lie with how we're modelling the problem as we see it in the Open API Spec. File bugs matching this description to our parent project, "Autorest".
  • Azure/azure-rest-api-specs : If you're getting an error message from the service, saying that it requires a different set of parameters, or you're targeting the wrong endpoint, the problem is likely with the Azure OpenAPI Specs repository. i.e. It seems like the service isn't accurately described.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repository using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

IMPORTANT NOTE

This project uses a git submodule for dependent code. When cloning this repository use git clone --recursive ... or perform a git submodule init after the project is cloned.

AutoRest extension configuration

use-extension:
  "@microsoft.azure/autorest.modeler": "2.3.38"

pipeline:
  go/imodeler1:
    input: openapi-document/identity
    output-artifact: code-model-v1
    scope: go
  go/commonmarker:
    input: imodeler1
    output-artifact: code-model-v1
  go/cm/transform:
    input: commonmarker
    output-artifact: code-model-v1
  go/cm/emitter:
    input: transform
    scope: scope-cm/emitter
  go/generate:
    plugin: go
    input: cm/transform
    output-artifact: source-file-go
  go/transform:
    input: generate
    output-artifact: source-file-go
    scope: scope-transform-string
  go/emitter:
    input: transform
    scope: scope-go/emitter

scope-go/emitter:
  input-artifact: source-file-go
  output-uri-expr: $key

output-artifact:
- source-file-go

Directories

Path Synopsis
test
src/tests/generated/additionalproperties
Package additionalproperties implements the Azure ARM Additionalproperties service API version 1.0.0.
Package additionalproperties implements the Azure ARM Additionalproperties service API version 1.0.0.
src/tests/generated/arraygroup
Package arraygroup implements the Azure ARM Arraygroup service API version 1.0.0.
Package arraygroup implements the Azure ARM Arraygroup service API version 1.0.0.
src/tests/generated/azurereport
Package azurereport implements the Azure ARM Azurereport service API version 1.0.0.
Package azurereport implements the Azure ARM Azurereport service API version 1.0.0.
src/tests/generated/booleangroup
Package booleangroup implements the Azure ARM Booleangroup service API version 1.0.0.
Package booleangroup implements the Azure ARM Booleangroup service API version 1.0.0.
src/tests/generated/bytegroup
Package bytegroup implements the Azure ARM Bytegroup service API version 1.0.0.
Package bytegroup implements the Azure ARM Bytegroup service API version 1.0.0.
src/tests/generated/complexgroup
Package complexgroup implements the Azure ARM Complexgroup service API version 2016-02-29.
Package complexgroup implements the Azure ARM Complexgroup service API version 2016-02-29.
src/tests/generated/custombaseurlgroup
Package custombaseurlgroup implements the Azure ARM Custombaseurlgroup service API version 1.0.0.
Package custombaseurlgroup implements the Azure ARM Custombaseurlgroup service API version 1.0.0.
src/tests/generated/dategroup
Package dategroup implements the Azure ARM Dategroup service API version 1.0.0.
Package dategroup implements the Azure ARM Dategroup service API version 1.0.0.
src/tests/generated/datetimegroup
Package datetimegroup implements the Azure ARM Datetimegroup service API version 1.0.0.
Package datetimegroup implements the Azure ARM Datetimegroup service API version 1.0.0.
src/tests/generated/datetimerfc1123group
Package datetimerfc1123group implements the Azure ARM Datetimerfc1123group service API version 1.0.0.
Package datetimerfc1123group implements the Azure ARM Datetimerfc1123group service API version 1.0.0.
src/tests/generated/dictionarygroup
Package dictionarygroup implements the Azure ARM Dictionarygroup service API version 1.0.0.
Package dictionarygroup implements the Azure ARM Dictionarygroup service API version 1.0.0.
src/tests/generated/durationgroup
Package durationgroup implements the Azure ARM Durationgroup service API version 1.0.0.
Package durationgroup implements the Azure ARM Durationgroup service API version 1.0.0.
src/tests/generated/filegroup
Package filegroup implements the Azure ARM Filegroup service API version 1.0.0.
Package filegroup implements the Azure ARM Filegroup service API version 1.0.0.
src/tests/generated/formdatagroup
Package formdatagroup implements the Azure ARM Formdatagroup service API version 1.0.0.
Package formdatagroup implements the Azure ARM Formdatagroup service API version 1.0.0.
src/tests/generated/headergroup
Package headergroup implements the Azure ARM Headergroup service API version 1.0.0.
Package headergroup implements the Azure ARM Headergroup service API version 1.0.0.
src/tests/generated/httpinfrastructuregroup
Package httpinfrastructuregroup implements the Azure ARM Httpinfrastructuregroup service API version 1.0.0.
Package httpinfrastructuregroup implements the Azure ARM Httpinfrastructuregroup service API version 1.0.0.
src/tests/generated/integergroup
Package integergroup implements the Azure ARM Integergroup service API version 1.0.0.
Package integergroup implements the Azure ARM Integergroup service API version 1.0.0.
src/tests/generated/lrogroup
Package lrogroup implements the Azure ARM Lrogroup service API version 1.0.0.
Package lrogroup implements the Azure ARM Lrogroup service API version 1.0.0.
src/tests/generated/modelflatteninggroup
Package modelflatteninggroup implements the Azure ARM Modelflatteninggroup service API version 1.0.0.
Package modelflatteninggroup implements the Azure ARM Modelflatteninggroup service API version 1.0.0.
src/tests/generated/morecustombaseurigroup
Package morecustombaseurigroup implements the Azure ARM Morecustombaseurigroup service API version 1.0.0.
Package morecustombaseurigroup implements the Azure ARM Morecustombaseurigroup service API version 1.0.0.
src/tests/generated/numbergroup
Package numbergroup implements the Azure ARM Numbergroup service API version 1.0.0.
Package numbergroup implements the Azure ARM Numbergroup service API version 1.0.0.
src/tests/generated/optionalgroup
Package optionalgroup implements the Azure ARM Optionalgroup service API version 1.0.0.
Package optionalgroup implements the Azure ARM Optionalgroup service API version 1.0.0.
src/tests/generated/paginggroup
Package paginggroup implements the Azure ARM Paginggroup service API version 1.0.0.
Package paginggroup implements the Azure ARM Paginggroup service API version 1.0.0.
src/tests/generated/report
Package report implements the Azure ARM Report service API version 1.0.0.
Package report implements the Azure ARM Report service API version 1.0.0.
src/tests/generated/stringgroup
Package stringgroup implements the Azure ARM Stringgroup service API version 1.0.0.
Package stringgroup implements the Azure ARM Stringgroup service API version 1.0.0.
src/tests/generated/urlgroup
Package urlgroup implements the Azure ARM Urlgroup service API version 1.0.0.
Package urlgroup implements the Azure ARM Urlgroup service API version 1.0.0.
src/tests/generated/urlmultigroup
Package urlmultigroup implements the Azure ARM Urlmultigroup service API version 1.0.0.
Package urlmultigroup implements the Azure ARM Urlmultigroup service API version 1.0.0.
src/tests/generated/validationgroup
Package validationgroup implements the Azure ARM Validationgroup service API version 1.0.0.
Package validationgroup implements the Azure ARM Validationgroup service API version 1.0.0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL