2020-12-02 03:20:56 +03:00
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
# Keep this section in sync with .gitignore
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
## Ignore generated code
|
|
|
|
PackageTest/NugetPackageTest/Generated
|
|
|
|
src/generator/AutoRest.NodeJS.Tests/AcceptanceTests/*.js
|
|
|
|
|
|
|
|
## Ignore user-specific files, temporary files, build results, etc.
|
|
|
|
compare-results/*
|
|
|
|
|
|
|
|
# User-specific files
|
|
|
|
*.suo
|
|
|
|
*.user
|
|
|
|
*.sln.docstates
|
|
|
|
.vs
|
|
|
|
launchSettings.json
|
|
|
|
|
|
|
|
# Build results
|
|
|
|
binaries/
|
|
|
|
[Dd]ebug*/
|
|
|
|
[Rr]elease/
|
|
|
|
|
|
|
|
[Tt]est[Rr]esult*
|
|
|
|
[Bb]uild[Ll]og.*
|
|
|
|
[Bb]uild.out
|
|
|
|
|
|
|
|
*_i.c
|
|
|
|
*_p.c
|
|
|
|
*.ilk
|
|
|
|
*.meta
|
|
|
|
*.obj
|
|
|
|
*.pch
|
|
|
|
*.pdb
|
|
|
|
*.pgc
|
|
|
|
*.pgd
|
|
|
|
*.rsp
|
|
|
|
*.sbr
|
|
|
|
*.tlb
|
|
|
|
*.tli
|
|
|
|
*.tlh
|
|
|
|
*.tmp
|
|
|
|
*.vspscc
|
|
|
|
*.vssscc
|
|
|
|
.builds
|
|
|
|
|
|
|
|
*.pidb
|
|
|
|
|
|
|
|
*.log*
|
|
|
|
*.scc
|
|
|
|
# Visual C++ cache files
|
|
|
|
ipch/
|
|
|
|
*.aps
|
|
|
|
*.ncb
|
|
|
|
*.opensdf
|
|
|
|
*.sdf
|
|
|
|
|
|
|
|
# Visual Studio profiler
|
|
|
|
*.psess
|
|
|
|
*.vsp
|
|
|
|
|
|
|
|
# VS Code settings
|
|
|
|
*.vscode
|
|
|
|
|
|
|
|
# Code analysis
|
|
|
|
*.CodeAnalysisLog.xml
|
|
|
|
|
|
|
|
# Guidance Automation Toolkit
|
|
|
|
*.gpState
|
|
|
|
|
|
|
|
# ReSharper is a Visual Studio add-in
|
|
|
|
_ReSharper*/
|
|
|
|
*.[Rr]e[Ss]harper
|
|
|
|
|
|
|
|
# NCrunch
|
|
|
|
*.ncrunch*
|
|
|
|
.*crunch*.local.xml
|
|
|
|
|
|
|
|
# Installshield output folder
|
|
|
|
[Ee]xpress
|
|
|
|
|
|
|
|
# DocProject is a documentation generator add-in
|
|
|
|
DocProject/buildhelp/
|
|
|
|
DocProject/Help/*.HxT
|
|
|
|
DocProject/Help/*.HxC
|
|
|
|
DocProject/Help/*.hhc
|
|
|
|
DocProject/Help/*.hhk
|
|
|
|
DocProject/Help/*.hhp
|
|
|
|
DocProject/Help/Html2
|
|
|
|
DocProject/Help/html
|
|
|
|
|
|
|
|
# Click-Once directory
|
|
|
|
publish
|
|
|
|
|
|
|
|
# Publish Web Output
|
|
|
|
*.[Pp]ublish.xml
|
|
|
|
|
|
|
|
# Others
|
|
|
|
[Bb]in
|
|
|
|
[Oo]bj
|
|
|
|
sql
|
|
|
|
*.Cache
|
|
|
|
ClientBin
|
|
|
|
[Ss]tyle[Cc]op.*
|
|
|
|
~$*
|
|
|
|
*.dbmdl
|
|
|
|
|
|
|
|
# Build tasks
|
|
|
|
[Tt]ools/*.dll
|
|
|
|
*.class
|
|
|
|
|
|
|
|
# Mobile Tools for Java (J2ME)
|
|
|
|
.mtj.tmp/
|
|
|
|
|
|
|
|
# Package Files #
|
|
|
|
*.jar
|
|
|
|
*.war
|
|
|
|
*.ear
|
|
|
|
|
|
|
|
# Azure Tooling #
|
|
|
|
node_modules
|
|
|
|
.ntvs_analysis.dat
|
|
|
|
|
|
|
|
# Eclipse #
|
|
|
|
*.pydevproject
|
|
|
|
.project
|
|
|
|
.metadata
|
|
|
|
bin/**
|
|
|
|
tmp/**
|
|
|
|
tmp/**/*
|
|
|
|
*.bak
|
|
|
|
*.swp
|
|
|
|
*~.nib
|
|
|
|
local.properties
|
|
|
|
.classpath
|
|
|
|
.settings/
|
|
|
|
.loadpath
|
|
|
|
|
|
|
|
# Xamarin #
|
|
|
|
*.userprefs
|
|
|
|
|
|
|
|
# Other Tooling #
|
|
|
|
.classpath
|
|
|
|
.project
|
|
|
|
target
|
|
|
|
build
|
|
|
|
reports
|
|
|
|
.gradle
|
|
|
|
.idea
|
|
|
|
*.iml
|
|
|
|
Tools/7-Zip
|
|
|
|
.gitrevision
|
|
|
|
|
|
|
|
# Sensitive files
|
|
|
|
*.keys
|
|
|
|
*.pfx
|
|
|
|
*.cer
|
|
|
|
*.pem
|
|
|
|
*.jks
|
|
|
|
|
|
|
|
# Backup & report files from converting a project to a new version of VS.
|
|
|
|
_UpgradeReport_Files/
|
|
|
|
Backup*/
|
|
|
|
UpgradeLog*.XML
|
|
|
|
|
|
|
|
# Mac OS #
|
|
|
|
.DS_Store
|
|
|
|
.DS_Store?
|
|
|
|
|
|
|
|
# Windows #
|
|
|
|
Thumbs.db
|
|
|
|
|
|
|
|
# Mono
|
|
|
|
*dll.mdb
|
|
|
|
*exe.mdb
|
|
|
|
|
|
|
|
#old nuget restore folder
|
|
|
|
.nuget/
|
|
|
|
src/generator/AutoRest.Ruby*Tests/Gemfile.lock
|
|
|
|
src/generator/AutoRest.Ruby*/*/RspecTests/Generated/*
|
|
|
|
|
|
|
|
#netcore
|
|
|
|
/NetCore
|
|
|
|
*.lock.json
|
|
|
|
|
|
|
|
#dnx installation
|
|
|
|
dnx-clr-win-x86*/
|
|
|
|
dnx-coreclr-win-x86*/
|
|
|
|
/dnx
|
|
|
|
|
|
|
|
# Gemfile.lock
|
|
|
|
Gemfile.lock
|
|
|
|
|
|
|
|
# go ignore
|
|
|
|
src/generator/AutoRest.Go.Tests/pkg/*
|
|
|
|
src/generator/AutoRest.Go.Tests/bin/*
|
|
|
|
src/generator/AutoRest.Go.Tests/src/github.com/*
|
|
|
|
src/generator/AutoRest.Go.Tests/src/tests/generated/*
|
|
|
|
src/generator/AutoRest.Go.Tests/src/tests/vendor/*
|
|
|
|
src/generator/AutoRest.Go.Tests/src/tests/glide.lock
|
|
|
|
|
|
|
|
autorest/**/*.js
|
|
|
|
core/**/*.js
|
|
|
|
|
|
|
|
*.js.map
|
|
|
|
|
|
|
|
# backup files
|
|
|
|
*~
|
|
|
|
|
|
|
|
#client runtime
|
|
|
|
src/client/**/*
|
|
|
|
|
|
|
|
src/extension/old/**/*
|
|
|
|
*.d.ts
|
|
|
|
|
|
|
|
src/bootstrapper
|
|
|
|
src/extension/out
|
|
|
|
src/next-gen
|
|
|
|
|
|
|
|
package/nuget/tools
|
|
|
|
package/chocolatey/*.nupkg
|
|
|
|
|
|
|
|
Samples/**/*.map
|
|
|
|
|
|
|
|
# npm (we do want to test for most recent versions)
|
|
|
|
**/package-lock.json
|
|
|
|
**/dist/
|
|
|
|
src/*/nm
|
|
|
|
/nm/
|
|
|
|
*.tgz
|
|
|
|
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
*.log
|
|
|
|
npm-debug.log*
|
|
|
|
yarn-debug.log*
|
|
|
|
yarn-error.log*
|
|
|
|
|
|
|
|
# Runtime data
|
|
|
|
*.pid
|
|
|
|
*.seed
|
|
|
|
*.pid.lock
|
|
|
|
|
|
|
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
|
|
lib-cov
|
|
|
|
|
|
|
|
# Coverage directory used by tools like istanbul
|
|
|
|
coverage
|
|
|
|
|
|
|
|
# nyc test coverage
|
|
|
|
.nyc_output
|
|
|
|
|
|
|
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
|
|
.grunt
|
|
|
|
|
|
|
|
# Bower dependency directory (https://bower.io/)
|
|
|
|
bower_components
|
|
|
|
|
|
|
|
# node-waf configuration
|
|
|
|
.lock-wscript
|
|
|
|
|
|
|
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
|
|
build/Release
|
|
|
|
|
|
|
|
# Dependency directories
|
|
|
|
node_modules/
|
|
|
|
jspm_packages/
|
|
|
|
|
|
|
|
# Optional npm cache directory
|
|
|
|
.npm
|
|
|
|
|
|
|
|
# Optional eslint cache
|
|
|
|
.eslintcache
|
|
|
|
|
|
|
|
# Optional REPL history
|
|
|
|
.node_repl_history
|
|
|
|
|
|
|
|
# Output of 'npm pack'
|
|
|
|
*.tgz
|
|
|
|
|
|
|
|
# Yarn Integrity file
|
|
|
|
.yarn-integrity
|
|
|
|
|
|
|
|
# dotenv environment variables file
|
|
|
|
.env
|
|
|
|
|
|
|
|
# next.js build output
|
|
|
|
.next
|
|
|
|
|
|
|
|
# Common toolchain intermediate files
|
|
|
|
temp
|
|
|
|
|
|
|
|
# Rush files
|
|
|
|
common/temp/**
|
|
|
|
package-deps.json
|
|
|
|
|
|
|
|
# Code generation output for regression tests
|
|
|
|
core/test/regression
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
# Prettier-specific overrides
|
|
|
|
#-------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Rush files
|
|
|
|
common/changes/
|
|
|
|
common/scripts/
|
|
|
|
CHANGELOG.*
|
|
|
|
|
|
|
|
# Package manager files
|
|
|
|
pnpm-lock.yaml
|
|
|
|
yarn.lock
|
|
|
|
package-lock.json
|
|
|
|
shrinkwrap.json
|
|
|
|
|
|
|
|
# Build outputs
|
|
|
|
dist
|
|
|
|
|
|
|
|
# Prettier reformats code blocks inside Markdown, which affects rendered output
|
2021-04-05 19:49:27 +03:00
|
|
|
# *.md
|
2020-12-02 03:20:56 +03:00
|
|
|
|
2021-02-09 01:53:10 +03:00
|
|
|
schema/
|
2020-12-02 03:20:56 +03:00
|
|
|
Samples/
|
2021-02-09 01:53:10 +03:00
|
|
|
core/test/resources/
|
2022-02-26 05:01:02 +03:00
|
|
|
|
|
|
|
# This file isnt' actually yaml
|
|
|
|
regression-tests/smoke-tests.yaml
|
|
|
|
|
|
|
|
# Generated codemodel
|
|
|
|
packages/libs/codemodel/.resources
|
|
|
|
|
|
|
|
# Scenario tests
|
|
|
|
**/*.snap.json
|
|
|
|
**/*.snap.yaml
|
|
|
|
**/test/scenarios/expected/**/*.yaml
|
|
|
|
**/test/scenarios/expected/**/*.json
|
|
|
|
packages/extensions/core/test/plugins/*/expected/*.json
|
2022-05-31 17:46:41 +03:00
|
|
|
|
|
|
|
# MICROSOFT SECURITY.md
|
|
|
|
/SECURITY.md
|
2022-11-19 03:48:35 +03:00
|
|
|
|
2024-01-11 12:48:50 +03:00
|
|
|
# Generated typespec and examples
|
Initial Support for ARM in OpenAPI to TypeSpec Conversion (#4777)
This PR represents the initial effort to integrate ARM (Azure Resource
Manager) support into the OpenAPI to TypeSpec plugin. Utilizing the
`@typespec/azure-resource-manager` library, we now generate TypeSpec
representations of Azure resources. A subsequent PR will address the
definition of Resource operations.
**Overview:**
1. **Consuming Resource Metadata (`resources.json`)**:
- Originates from C# codegen efforts, reusing their discovery and
metadata extraction processes.
- A parallel project is ongoing to enhance C# codegen, aiming to output
all necessary metadata for this feature.
- Currently, the metadata is read from a JSON file located at the
project root. Integration into the pipeline will be a focus of future
work.
2. **Per-Resource tsp File Generation**:
- Files generated will contain model declarations for both the Resources
and their subsequent operations.
- This is achieved using templates and decorators from
`@typespec/azure-resource-manager`.
3. **Reutilizing Data Plane Conversion Logic**:
- Efforts have been made to reuse existing components, including model
generation, decorator logic, interfaces, and more.
**Upcoming Work:**
- Inclusion of Resource operations within the Resource file, utilizing
templates from `@typespec/azure-resource-manager`.
- Removal of extraneous generated models.
- For ARM spec conversions, there won't be a need for the `routes.tsp`
file, as operations are defined alongside the resources. However, this
file remains relevant and necessary for data plane spec conversions.
---------
Co-authored-by: tadelesh <tadelesh.shi@live.cn>
Co-authored-by: Jose Manuel Heredia Hidalgo <mane.h@live.com>
2023-12-22 06:13:41 +03:00
|
|
|
packages/extensions/openapi-to-typespec/test/**/*.tsp
|
2024-01-11 12:48:50 +03:00
|
|
|
packages/extensions/openapi-to-typespec/test/**/*.json
|