Skip to content

Latest commit

 

History

History
461 lines (314 loc) · 12.1 KB

File metadata and controls

461 lines (314 loc) · 12.1 KB

RecoveryServices.Backup

see https://aka.ms/autorest

This is the AutoRest configuration file for RecoveryServicesBackup.


Getting Started

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

title: Recovery Services Backup Client
description: Open API 2.0 Specs for Azure RecoveryServices Backup service
openapi-type: arm
tag: package-2023-06
csharp-sdks-folder: ./Generated/CSharp
python-sdks-folder: ./Generated/Python
go-sdk-folder: ./Generated/Golang

license-header: MICROSOFT_MIT
tag: package-passivestamp-2023-01-15
tag: package-2023-06

Validations

Run validations when --validate is specified on command line

azure-validator: true
model-validator: true
semantic-validator: true
message-format: json

Tag: package-2023-06

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

input-file:
  - Microsoft.RecoveryServices/stable/2023-06-01/bms.json

Tag: package-2023-04

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

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

Tag: package-2023-02

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

input-file:
  - Microsoft.RecoveryServices/stable/2023-02-01/bms.json

Tag: package-passivestamp-2023-01-15

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

input-file:
  - Microsoft.RecoveryServices/stable/2023-01-15/bms.json

Tag: package-2023-01

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

input-file:
  - Microsoft.RecoveryServices/stable/2023-01-01/bms.json

Tag: package-2022-10

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

input-file:
  - Microsoft.RecoveryServices/stable/2022-10-01/bms.json

Tag: package-preview-2022-09

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

input-file:
  - Microsoft.RecoveryServices/preview/2022-09-30-preview/bms.json

Tag: package-2022-09-preview

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

input-file:
  - Microsoft.RecoveryServices/preview/2022-09-01-preview/bms.json

Tag: package-2022-06-01-preview

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

input-file:
  - Microsoft.RecoveryServices/preview/2022-06-01-preview/bms.json

Tag: package-2022-04

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

input-file:
  - Microsoft.RecoveryServices/stable/2022-04-01/bms.json

Tag: package-2022-03

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

input-file:
  - Microsoft.RecoveryServices/stable/2022-03-01/bms.json

Tag: package-2022-02

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

input-file:
  - Microsoft.RecoveryServices/stable/2022-02-01/bms.json

Tag: package-2022-01

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

input-file:
  - Microsoft.RecoveryServices/stable/2022-01-01/bms.json

Tag: package-2021-12

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

input-file:
  - Microsoft.RecoveryServices/stable/2021-12-01/bms.json

Tag: package-passivestamp-2021-11-15

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

input-file:
-  Microsoft.RecoveryServices/stable/2021-11-15/bms.json

Tag: package-passivestamp-2018-12-20

These settings apply only when --tag=package-passivestamp-2018-12-20 is specified on the command line.

input-file:
-  Microsoft.RecoveryServices/stable/2018-12-20/bms.json

Tag: package-2021-10

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

input-file:
  - Microsoft.RecoveryServices/stable/2021-10-01/bms.json

Tag: package-2021-08

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

input-file:
  - Microsoft.RecoveryServices/stable/2021-08-01/bms.json

Tag: package-2021-07

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

input-file:
  - Microsoft.RecoveryServices/stable/2021-07-01/bms.json

Tag: package-2021-06

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

input-file:
  - Microsoft.RecoveryServices/stable/2021-06-01/bms.json

Tag: package-2021-04

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

input-file:
- Microsoft.RecoveryServices/stable/2021-04-01/bms.json

Tag: package-2021-03

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

input-file:
- Microsoft.RecoveryServices/stable/2021-03-01/bms.json

Tag: package-2021-02-10

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

input-file:
- Microsoft.RecoveryServices/stable/2021-02-10/bms.json

Tag: package-2021-02-preview

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

input-file:
- Microsoft.RecoveryServices/preview/2021-02-01-preview/bms.json

Tag: package-2021-02

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

input-file:
- Microsoft.RecoveryServices/stable/2021-02-01/bms.json

Tag: package-2021-01

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

input-file:
- Microsoft.RecoveryServices/stable/2021-01-01/bms.json

Tag: package-2020-12

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

input-file:
- Microsoft.RecoveryServices/stable/2020-12-01/bms.json

Tag: package-2020-10

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

input-file:
- Microsoft.RecoveryServices/stable/2020-10-01/bms.json

Tag: package-2020-07

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

input-file:
- Microsoft.RecoveryServices/stable/2020-07-01/bms.json

Tag: package-2020-02

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

input-file:
- Microsoft.RecoveryServices/stable/2020-02-02/bms.json

Tag: package-2019-06

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

input-file:
- Microsoft.RecoveryServices/stable/2019-06-15/bms.json

Tag: package-2019-05

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

input-file:
- Microsoft.RecoveryServices/stable/2019-05-13/bms.json

Tag: package-2017-07

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

input-file:
- Microsoft.RecoveryServices/stable/2017-07-01/bms.json

Tag: package-2016-06

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

input-file:
- Microsoft.RecoveryServices/stable/2016-06-01/recoveryservicesbackup.json
- Microsoft.RecoveryServices/stable/2016-06-01/registeredIdentities.json

Tag: package-2016-08

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

input-file:
- Microsoft.RecoveryServices/stable/2016-08-10/operations.json

Tag: package-2016-12

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

input-file:
- Microsoft.RecoveryServices/stable/2016-12-01/bms.json

Tag: package-2017-07-only

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

input-file:
- Microsoft.RecoveryServices/stable/2017-07-01/bms.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-track2
  - repo: azure-sdk-for-python-track2
  - repo: azure-sdk-for-java
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-js
  - repo: azure-sdk-for-node
  - repo: azure-sdk-for-ruby
    after_scripts:
      - bundle install && rake arm:regen_all_profiles['azure_mgmt_recovery_services_backup']
  - 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
  payload-flattening-threshold: 1
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Management.RecoveryServices.Backup
  output-folder: $(csharp-sdks-folder)/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup/src/recoveryservicesbackup/Generated
  clear-output-folder: true

Go

See configuration in readme.go.md

Python

See configuration in readme.python.md

Java

See configuration in readme.java.md

Suppression

directive:
  - suppress: ImplementPrivateEndpointAPIs
    from: Microsoft.RecoveryServices/stable/2018-12-20/bms.json
    reason: Existing API version. Private Endpoint are not supposed to be implemented for this API version dedicated for CRR, that uses API version based routing.
  - suppress: ImplementPrivateEndpointAPIs
    from: Microsoft.RecoveryServices/stable/2021-06-01/bms.json
    reason: Addition of new API version is specific to MSI support for our service, to ensure sign off we commit we will take a fix for Private endpoint in Ni.
  - suppress: TrackedResourceBeyondsThirdLevel
    from: bms.json
    where: $.definitions.RecoveryPointResource
    reason: This is an existing resource in our service and is present across API version. Suppressing for API versions 2021-11-15, 2023-01-15 for fixing completeness for CRR Get recoverypoints API.
  - suppress: LroErrorContent  
    from: bms.json
    reason: The azure backup service's API infra handles the conversation from execptions to custom error CloudError. Changing this would be breaking change for our service.