Skip to content

Latest commit

 

History

History
149 lines (99 loc) · 3.59 KB

File metadata and controls

149 lines (99 loc) · 3.59 KB

Quota

see https://aka.ms/autorest

This is the AutoRest configuration file for Quota RP.


Getting Started

To build the SDK for Quota, simply Install AutoRest and in this folder, run:

autorest

To see additional help and options, run:

autorest --help


Configuration

Basic Information

These are the global settings for the Quota API.

openapi-type: arm
tag: package-2021-03-15-preview

Tag: package-2021-03-15

These settings apply only when --tag=package-2021-03-15 is specified on the command line.

input-file:
  - Microsoft.Quota/stable/2021-03-15/quota.json

Tag: package-2021-03-15-preview

These settings apply only when --tag=package-2021-03-15-preview is specified on the command line.

input-file:
  - Microsoft.Quota/preview/2021-03-15-preview/quota.json

Supressions

directive:
- suppress:
    - R3007 # The 'PutGetPatchResponseSchema' Both get and put/Patch is using same data model - CurrentQuotaLimitBase.
    - R4009 # The 'RequiredReadOnlySystemData' It will be added later, if needed.
    - R4018 # The 'OperationsApiResponseSchema' It will be added later, if needed. The current API provides in this format.


Code Generation

Swagger to SDK

This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.

swagger-to-sdk:
  - repo: azure-sdk-for-net
  - repo: azure-sdk-for-python-track2
  - repo: azure-sdk-for-java
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-js
  - repo: azure-sdk-for-node
  - repo: azure-cli-extensions
  - repo: azure-sdk-for-ruby
  - repo: azure-resource-manager-schemas
    after_scripts:
      - node sdkauto_afterscript.js quota/resource-manager

C#

These settings apply only when --csharp is specified on the command line. Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>.

csharp:
  azure-arm: true
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Management.Quota
  payload-flattening-threshold: 1
  output-folder: $(csharp-sdks-folder)/quota/Microsoft.Azure.Management.Quota/src/Generated
  clear-output-folder: true

Python

See configuration in readme.python.md

CLI

See configuration in readme.cli.md

AZ

See configuration in readme.az.md

Go

See configuration in readme.go.md

AzureResourceSchema

See configuration in readme.azureresourceschema.md

Java

See configuration in readme.java.md

Ruby

See configuration in readme.ruby.md

Multi-API/Profile support for AutoRest v3 generators

AutoRest V3 generators require the use of --tag=all-api-versions to select api files.

This block is updated by an automatic script. Edits may be lost!

# include the azure profile definitions from the standard location
require: $(this-folder)/../../../profiles/readme.md

# all the input files across all versions
input-file:
  - $(this-folder)/Microsoft.Quota/preview/2021-03-15-preview/quota.json

If there are files that should not be in the all-api-versions set, uncomment the exclude-file section below and add the file paths.

#exclude-file: 
#  - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json