Skip to content

Latest commit

 

History

History
159 lines (112 loc) · 4.29 KB

File metadata and controls

159 lines (112 loc) · 4.29 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-2023-06-01-preview
modelerfour:
  flatten-models: false

Tag: package-2023-06-01-preview

These settings apply only when --tag=package-2023-06-01-preview is specified on the command line.

input-file:
  - Microsoft.Quota/preview/2023-06-01-preview/groupquota.json
  - Microsoft.Quota/preview/2023-06-01-preview/quota.json

Tag: package-2023-02-01

These settings apply only when --tag=package-2023-02-01 is specified on the command line.

input-file:
  - Microsoft.Quota/stable/2023-02-01/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.
suppressions:
  - code: PathForPutOperation
    reason: This API is a Management Group level API.
  - code: PathForNestedResource
    reason: This API is a Management Group level API.
  - code: TopLevelResourcesListBySubscription
    reason: This API is a Management Group level API.
  - code: TenantLevelAPIsNotAllowed 
    from: groupquota.json
    where: $.paths["/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}"]
    reason: This API is a Management Group level API.
  - code: AllProxyResourcesShouldHaveDelete
    from: groupquota.json
    where: $.paths["/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}"].delete
    reason: Quota cannot be deleted or reduced. It is not supported by any resource provider.
  - code: AllProxyResourcesShouldHaveDelete
    from: groupquota.json
    where: $.paths["/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}".delete
    reason: Quota cannot be deleted or reduced. It is not supported by any resource provider.


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-track2
  - repo: azure-sdk-for-python
  - 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
  - repo: azure-powershell

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

Java

See configuration in readme.java.md

Ruby

See configuration in readme.ruby.md