This is the AutoRest configuration file for DataProtection.
To build the SDK for DataProtection, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the DataProtection API.
title: Data Protection Client
description: Open API 2.0 Specs for Azure Data Protection service
openapi-type: arm
tag: package-2025-07-01
csharp-sdks-folder: ./Generated/CSharp
python-sdks-folder: ./Generated/Python
go-sdk-folder: ./Generated/Golang
license-header: MICROSOFT_MIT
suppressions:
- code: ResourceNameRestriction
reason: "BackupInstance Resource is created by DPP Service, so regex wont add much value here."Run validations when --validate is specified on command line
azure-validator: true
model-validator: true
semantic-validator: true
message-format: jsonThese settings apply only when --tag=package-2025-07-01 is specified on the command line.
input-file:
- stable/2025-07-01/dataprotection.jsonThese settings apply only when --tag=package-2025-02-01 is specified on the command line.
input-file:
- stable/2025-02-01/dataprotection.jsonThese settings apply only when --tag=package-2025-01 is specified on the command line.
input-file:
- stable/2025-01-01/dataprotection.jsonThese settings apply only when --tag=package-2024-04 is specified on the command line.
input-file:
- stable/2024-04-01/dataprotection.jsonThese settings apply only when --tag=package-preview-2024-02 is specified on the command line.
input-file:
- preview/2024-02-01-preview/dataprotection.json
suppressions:
- code: AvoidAdditionalProperties
from: dataprotection.json
reason: There are objects that need a generic key-value pair in contract.
- code: GetCollectionOnlyHasValueAndNextLink
from: dataprotection.json
reason: Seems like a tool bug, as the flagged contract satisfies the given condition.These settings apply only when --tag=package-2024-03 is specified on the command line.
input-file:
- stable/2024-03-01/dataprotection.jsonThese settings apply only when --tag=package-2023-12 is specified on the command line.
input-file:
- stable/2023-12-01/dataprotection.jsonThese settings apply only when --tag=package-2023-11 is specified on the command line.
input-file:
- stable/2023-11-01/dataprotection.jsonThese settings apply only when --tag=package-preview-2023-08 is specified on the command line.
input-file:
- preview/2023-08-01-preview/dataprotection.jsonThese settings apply only when --tag=package-preview-2023-06 is specified on the command line.
input-file:
- preview/2023-06-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2023-05 is specified on the command line.
input-file:
- stable/2023-05-01/dataprotection.jsonThese settings apply only when --tag=package-preview-2023-04 is specified on the command line.
input-file:
- preview/2023-04-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2023-01 is specified on the command line.
input-file:
- stable/2023-01-01/dataprotection.jsonThese settings apply only when --tag=package-2022-12 is specified on the command line.
input-file:
- stable/2022-12-01/dataprotection.jsonThese settings apply only when --tag=package-preview-2022-11 is specified on the command line.
input-file:
- preview/2022-11-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2022-10-preview is specified on the command line.
input-file:
- preview/2022-10-01-preview/dataprotection.jsonThese settings apply only when --tag=package-preview-2022-09 is specified on the command line.
input-file:
- preview/2022-09-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2022-05 is specified on the command line.
input-file:
- stable/2022-05-01/dataprotection.jsonThese settings apply only when --tag=package-2022-04 is specified on the command line.
input-file:
- stable/2022-04-01/dataprotection.jsonThese settings apply only when --tag=package-preview-2022-03 is specified on the command line.
input-file:
- preview/2022-03-31-preview/dataprotection.jsonThese settings apply only when --tag=package-preview-2022-02 is specified on the command line.
input-file:
- preview/2022-02-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2022-01 is specified on the command line.
input-file:
- stable/2022-01-01/dataprotection.jsonThese settings apply only when --tag=package-2021-10-preview is specified on the command line.
input-file:
- preview/2021-10-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2021-07 is specified on the command line.
input-file:
- stable/2021-07-01/dataprotection.jsonThese settings apply only when --tag=package-2021-01 is specified on the command line.
input-file:
- stable/2021-01-01/dataprotection.jsonThese settings apply only when --tag=package-2021-02-preview is specified on the command line.
input-file:
- preview/2021-02-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2021-06-preview is specified on the command line.
input-file:
- preview/2021-06-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2021-12-preview is specified on the command line.
input-file:
- preview/2021-12-01-preview/dataprotection.jsonThese settings apply only when --tag=package-2022-03 is specified on the command line.
input-file:
- stable/2022-03-01/dataprotection.jsonThis 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-python
- 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_data_protection']
- repo: azure-powershellSee configuration in readme.python.md
See configuration in readme.go.md
See configuration in readme.java.md
directive:
- suppress: ParametersInPost
where:
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchSecondaryRecoveryPoints"].post
- $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJobs"].post