diff --git a/specification/resourcegraph/resource-manager/readme.md b/specification/resourcegraph/resource-manager/readme.md index 10fca5396f81..a2daa2e92a67 100644 --- a/specification/resourcegraph/resource-manager/readme.md +++ b/specification/resourcegraph/resource-manager/readme.md @@ -1,5 +1,5 @@ # ResourceGraph - + > see https://aka.ms/autorest This is the AutoRest configuration file for ResourceGraph. @@ -20,7 +20,7 @@ To see additional help and options, run: ## Configuration -### Basic Information +### Basic Information These are the global settings for the ResourceGraph API. ``` yaml @@ -47,4 +47,17 @@ These settings apply only when `--tag=package-2018-09-preview` is specified on t ``` yaml $(tag) == 'package-2018-09-preview' input-file: - Microsoft.ResourceGraph/preview/2018-09-01-preview/resourcegraph.json -``` \ No newline at end of file +``` + +# Code Generation + + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python +``` diff --git a/specification/resourcegraph/resource-manager/readme.python.md b/specification/resourcegraph/resource-manager/readme.python.md new file mode 100644 index 000000000000..52b63cad819c --- /dev/null +++ b/specification/resourcegraph/resource-manager/readme.python.md @@ -0,0 +1,27 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.resourcegraph + package-name: azure-mgmt-resourcegraph + package-version: 0.6.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-resourcegraph +```