Skip to content

Latest commit

 

History

History
148 lines (115 loc) · 4.38 KB

File metadata and controls

148 lines (115 loc) · 4.38 KB

VMware Solution

see https://aka.ms/autorest

This is the AutoRest configuration file for VMware Solution.

Getting Started

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

openapi-type: arm
tag: package-2020-07-17-preview

Tag: package-2020-07-17-preview

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

input-file:
- Microsoft.AVS/preview/2020-07-17-preview/vmware.json
directive:
  - suppress: R3020
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    reason: Microsoft.AVS was chosen over Microsoft.AzureVMwareSolution
  - suppress: R3010
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    reason: list by immediate parent operations are defined
  - suppress: R3027
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    reasons: the PrivateClouds_List operation is by resource group
  - suppress: R3018
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    where: $.definitions.Operation.properties.isDataAction
    reason: standard property for Operation
  - suppress: R3018
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    where: $.definitions.MetricSpecification.properties.fillGapWithZero
    reason: standard property for MetricSpecification
  - suppress: R2001
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    where: $.definitions.Operation.properties.properties
    reason: x-ms-client-flatten not needed for Operation
  - suppress: R4009
    from: Microsoft.AVS/preview/2020-07-17-preview/vmware.json
    reason: systemData will be in the next API version

Tag: package-2020-03-20

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

input-file:
- Microsoft.AVS/stable/2020-03-20/vmware.json
directive:
  - suppress: R3020
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    reason: Microsoft.AVS was chosen over Microsoft.AzureVMwareSolution
  - suppress: R3010
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    reason: list by immediate parent operations are defined
  - suppress: R3027
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    reasons: the PrivateClouds_List operation is by resource group
  - suppress: R3018
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    where: $.definitions.Operation.properties.isDataAction
    reason: standard property for Operation
  - suppress: R3018
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    where: $.definitions.MetricSpecification.properties.fillGapWithZero
    reason: standard property for MetricSpecification
  - suppress: R2001
    from: Microsoft.AVS/stable/2020-03-20/vmware.json
    where: $.definitions.Operation.properties.properties
    reason: x-ms-client-flatten not needed for Operation

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

Suppression

directive:
  - suppress: SECRET_PROPERTY
    from:
      - Microsoft.AVS/preview/2020-07-17-preview/vmware.json
      - Microsoft.AVS/stable/2020-03-20/vmware.json
    where:
      - $.definitions.AdminCredentials.properties.nsxtPassword
      - $.definitions.AdminCredentials.properties.vcenterPassword
    reason: Secrets are OK to return in a POST response.

TypeScript

See configuration in readme.typescript.md

Python

See configuration in readme.python.md

C#

See configuration in readme.csharp.md

Go

See configuration in readme.go.md

Java

See configuration in readme.java.md

AzureResourceSchema

See configuration in readme.azureresourceschema.md