Run dotnet build /t:GenerateCode
in src directory to re-generate.
title: Azure.Security.KeyVault.Administration
input-file:
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7452e1cc7db72fbc6cd9539b390d8b8e5c2a1864/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.5/rbac.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7452e1cc7db72fbc6cd9539b390d8b8e5c2a1864/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.5/backuprestore.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7452e1cc7db72fbc6cd9539b390d8b8e5c2a1864/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.5/settings.json
namespace: Azure.Security.KeyVault.Administration
generation1-convenience-client: true
include-csproj: disable
These changes should eventually be included in the swagger or at least centralized in Azure/azure-rest-api-specs.
Treat HTTP 404 responses for DELETE operations for RBAC as non-errors.
directive:
- where-operation: RoleAssignments_Delete
transform: >
$.responses["404"] = {
"description": "The resource to delete does not exist.",
"x-ms-error-response": false
};
- where-operation: RoleDefinitions_Delete
transform: >
$.responses["404"] = {
"description": "The resource to delete does not exist.",
"x-ms-error-response": false
};
Do not parse response bodies unnecessarily.
directive:
- where-operation: RoleAssignments_Delete
transform: >
delete $.responses["200"].schema;
- where-operation: RoleDefinitions_Delete
transform: >
delete $.responses["200"].schema;
directive:
- rename-operation:
from: UpdateSetting
to: Settings_UpdateSetting
- rename-operation:
from: GetSetting
to: Settings_GetSetting
- rename-operation:
from: GetSettings
to: Settings_GetSettings
directive:
# [CodeGenMember("Type")] yields errors, so we have to rename via autorest transform.
- where: $.definitions.Setting.properties.type
from: swagger-document
transform: >
$["x-ms-client-name"] = "SettingType";
# [CodeGenSuppress("Value")] yields errors, so we have to rename via autorest transforms.
- where: $.definitions.Setting.properties.value
from: swagger-document
transform: >
$["x-ms-client-name"] = "content";