Skip to content

Latest commit

 

History

History
131 lines (93 loc) · 3.61 KB

File metadata and controls

131 lines (93 loc) · 3.61 KB

AppPlatform

see https://aka.ms/autorest

This is the AutoRest configuration file for AppPlatform.


Getting Started

To build the SDK for AppPlatform, 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 AppPlatform API.

openapi-type: arm
tag: package-preview-2020-11

Suppression

directive:
  - suppress: EnumInsteadOfBoolean
    from: appplatform.json
    where: $.definitions.NameAvailability.properties.nameAvailable
    reason:  The boolean properties 'nameAvailable' is actually boolean value defined by Azure API spec
  - suppress: EnumInsteadOfBoolean
    from: appplatform.json
    where: $.definitions.Dimension.properties.toBeExportedForShoebox
    reason:  The boolean properties 'toBeExportedForShoebox' is defined by Geneva metrics
  - suppress: R3021
    from: appplatform.json
    reason:  The resource type name 'Spring' is a trademark so cannot be changed to be camel-case
    #where: 
    #  - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default"]
    #  - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default"]

Tag: package-preview-2020-11

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

input-file:
  - Microsoft.AppPlatform/preview/2020-11-01-preview/appplatform.json

Tag: package-2020-07

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

input-file:
  - Microsoft.AppPlatform/stable/2020-07-01/appplatform.json

Tag: package-2019-05-01-preview

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

input-file:
- Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.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-python
    after_scripts:
      - python ./scripts/multiapi_init_gen.py azure-mgmt-appplatform
  - repo: azure-sdk-for-java
  - repo: azure-sdk-for-net
  - repo: azure-sdk-for-node
  - repo: azure-sdk-for-js
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-ruby
    after_scripts:
      - bundle install && rake arm:regen_all_profiles['azure_mgmt_appplatform']
  - repo: azure-resource-manager-schemas
    after_scripts:
      - node sdkauto_afterscript.js appplatform/resource-manager

Go

See configuration in readme.go.md

Java

See configuration in readme.java.md

C#

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

csharp:
  # last generated with AutoRest.0.17.3
  azure-arm: true
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Management.AppPlatform
  output-folder: $(csharp-sdks-folder)/appplatform/Microsoft.Azure.Management.AppPlatform/src/Generated
  clear-output-folder: true

AzureResourceSchema

See configuration in readme.azureresourceschema.md