Skip to content

Latest commit

 

History

History
194 lines (137 loc) · 5.15 KB

File metadata and controls

194 lines (137 loc) · 5.15 KB

Maintenance

see https://aka.ms/autorest

This is the AutoRest configuration file for Azure Maintenance.


Getting Started

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

openapi-type: arm
tag: package-2023-04

Tag: package-2023-04

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

input-file:
  - Microsoft.Maintenance/stable/2023-04-01/Maintenance.json

Tag: package-preview-2022-11

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

input-file:
  - Microsoft.Maintenance/preview/2022-11-01-preview/Maintenance.json

Tag: package-preview-2022-07

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

input-file:
  - Microsoft.Maintenance/preview/2022-07-01-preview/Maintenance.json

Tag: package-preview-2021-09

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

input-file:
  - Microsoft.Maintenance/preview/2021-09-01-preview/Maintenance.json

Tag: package-2021-05

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

input-file:
  - Microsoft.Maintenance/stable/2021-05-01/Maintenance.json

Tag: package-preview-2021-04

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

input-file:
  - Microsoft.Maintenance/preview/2021-04-01-preview/Maintenance.json

Tag: package-preview-2020-07

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

input-file:
  - Microsoft.Maintenance/preview/2020-07-01-preview/Maintenance.json

Tag: package-2020-04

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

input-file:
- Microsoft.Maintenance/stable/2020-04-01/Maintenance.json

Tag: package-2018-06-preview

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

input-file:
- Microsoft.Maintenance/preview/2018-06-01-preview/Maintenance.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-track2
  - repo: azure-libraries-for-java
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-node
  - 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.Maintenance
  payload-flattening-threshold: 1
  output-folder: $(csharp-sdks-folder)/maintenance/Microsoft.Azure.Management.Maintenance/src/Generated/
  clear-output-folder: true

Python

See configuration in readme.python.md

Go

See configuration in readme.go.md

Java

See configuration in readme.java.md

Suppression

directive:
  - suppress: PathForPutOperation
    from: maintenance.json
    reason: False postive. ConfigurationAssignments is proxy resource.
  - suppress: DeleteResponseBodyEmpty
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: PathContainsResourceType
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: PathContainsResourceType
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: TrackedResourcePatchOperation
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: SubscriptionsAndResourceGroupCasing
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: UnSupportedPatchProperties
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: PathResourceProviderNamePascalCase
    from: maintenance.json
    reason: Suppression warning to avoid breaking changes
  - suppress: RequestSchemaForTrackedResourcesMustHaveTags
    from: maintenance.json
    reason: False positive. ConfigurationAssignments is proxy resource at subscription/resourceGroup level.
  - suppress: ResourceNameRestriction
    from: maintenance.json
    reason: Maintenance RP accept any string, no special restriction required.