Skip to content

Latest commit

 

History

History
213 lines (152 loc) · 5.87 KB

File metadata and controls

213 lines (152 loc) · 5.87 KB

Subscription

see https://aka.ms/autorest

This is the AutoRest configuration file for Subscription.


Getting Started

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

autorest

To see additional help and options, run:

autorest --help


Configuration

Suppression

directive:
  - suppress: R2059

Basic Information

These are the global settings for the Subscription API.

openapi-type: arm
tag: package-2020-09

Tag: package-2020-09

These settings apply only when --tag=package-2020-09 is specified on the command line.

input-file:
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
- Microsoft.Subscription/stable/2020-09-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2020-01

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

input-file:
- Microsoft.Subscription/stable/2020-01-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2019-10-preview

These settings apply only when --tag=package-2019-10-preview is specified on the command line.

input-file:
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
- Microsoft.Subscription/preview/2019-10-01-preview/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2019-03-preview

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

input-file:
- Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json
- Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json
- Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json
- Microsoft.Subscription/preview/2018-03-01-preview/operations.json
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2018-11-preview

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

input-file:
- Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2018-03-preview

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

input-file:
- Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

Tag: package-2017-11-preview

These settings apply only when --tag=package-2017-11-preview is specified on the command line.

input-file:
- Microsoft.Subscription/preview/2017-11-01-preview/subscriptionDefinitions.json

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-go
  - repo: azure-sdk-for-python
  - repo: azure-sdk-for-node
  - repo: azure-sdk-for-js
  - repo: azure-cli-extensions
  - repo: azure-resource-manager-schemas
    after_scripts:
      - node sdkauto_afterscript.js subscription/resource-manager

Python

See configuration in readme.python.md

Go

See configuration in readme.go.md

Java

These settings apply only when --java is specified on the command line. Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>.

azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.subscription
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-subscription

Java multi-api

batch:
  - tag: package-2019-10-preview
  - tag: package-2017-11-preview

Tag: package-2019-10-preview and java

These settings apply only when --tag=package-2019-10-preview --java is specified on the command line. Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>.

java:
  namespace: com.microsoft.azure.management.subscription.v2019_10_01_preview
  output-folder: $(azure-libraries-for-java-folder)/sdk/subscription/mgmt-v2019_10_01_preview
regenerate-manager: true
generate-interface: true

Tag: package-2017-11-preview and java

These settings apply only when --tag=package-2017-11-preview --java is specified on the command line. Please also specify --azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>.

java:
  namespace: com.microsoft.azure.management.subscription.v2017_11_01_preview
  output-folder: $(azure-libraries-for-java-folder)/sdk/subscription/mgmt-v2017_11_01_preview
regenerate-manager: true
generate-interface: true

Tag: package-2016-06-01

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

input-file:
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
title: SubscriptionClient
description: The subscription client

AzureResourceSchema

See configuration in readme.azureresourceschema.md