This is the AutoRest configuration file for TrafficManager.
To build the SDK for TrafficManager, 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 TrafficManager API.
openapi-type: arm
tag: package-2022-04
directive:
- suppress: OperationsAPIImplementation
reason: We do have a operations api as "/providers/Microsoft.Network/operations"
from: trafficmanager.json
where: $.paths
- suppress: RequiredPropertiesMissingInResourceModel
reason: This will cause breaking changes in .NET SDK
from: trafficmanager.json
where: $.definitions.HeatMapModel
- suppress: RequiredPropertiesMissingInResourceModel
reason: This will cause breaking changes in .NET SDK
from: trafficmanager.json
where: $.definitions.TrafficManagerGeographicHierarchy
- suppress: RequiredPropertiesMissingInResourceModel
reason: This will cause breaking changes in .NET SDK
from: trafficmanager.json
where: $.definitions.Profile
- suppress: RequiredPropertiesMissingInResourceModel
reason: This will cause breaking changes in .NET SDK
from: trafficmanager.json
where: $.definitions.Endpoint
- suppress: RequiredPropertiesMissingInResourceModel
reason: This will cause breaking changes in .NET SDK
from: trafficmanager.json
where: $.definitions.UserMetricsModel
These settings apply only when --tag=package-2022-04
is specified on the command line.
input-file:
- Microsoft.Network/stable/2022-04-01/trafficmanager.json
These settings apply only when --tag=package-preview-2022-04
is specified on the command line.
input-file:
- Microsoft.Network/preview/2022-04-01-preview/trafficmanager.json
These settings apply only when --tag=package-2018-08
is specified on the command line.
input-file:
- Microsoft.Network/stable/2018-08-01/trafficmanager.json
These settings apply only when --tag=package-2018-04
is specified on the command line.
input-file:
- Microsoft.Network/stable/2018-04-01/trafficmanager.json
These settings apply only when --tag=package-2018-03
is specified on the command line.
input-file:
- Microsoft.Network/stable/2018-03-01/trafficmanager.json
These settings apply only when --tag=package-2018-02
is specified on the command line.
input-file:
- Microsoft.Network/stable/2018-02-01/trafficmanager.json
- Microsoft.Network/preview/2017-09-01-preview/trafficmanageranalytics.json
# Needed when there is more than one input file
override-info:
title: TrafficManagerManagementClient
directive:
- suppress: R3023
reason: it's implemented in the main network spec
approved-by: "@fearthecowboy"
- where: $.paths["/providers/Microsoft.Network/checkTrafficManagerNameAvailability"].post.operationId
suppress: R2066
reason: the name does include it.
approved-by: "@fearthecowboy"
- suppress: R3018
reason: Existing API; can't change.
approved-by: "@fearthecowboy"
- where: $.definitions.TrafficManagerUserMetricsKeyModel.properties
suppress: R3006
reason: Existing API; can't change without breaking API. Will consider in future API version
approved-by: "@fearthecowboy"
These settings apply only when --tag=package-2017-09-preview
is specified on the command line.
input-file:
- Microsoft.Network/stable/2017-05-01/trafficmanager.json
- Microsoft.Network/preview/2017-09-01-preview/trafficmanageranalytics.json
# Needed when there is more than one input file
override-info:
title: TrafficManagerManagementClient
These settings apply only when --tag=package-2017-09-preview-only
is specified on the command line.
input-file:
- Microsoft.Network/preview/2017-09-01-preview/trafficmanageranalytics.json
These settings apply only when --tag=package-2017-05
is specified on the command line.
input-file:
- Microsoft.Network/stable/2017-05-01/trafficmanager.json
These settings apply only when --tag=package-2017-03
is specified on the command line.
input-file:
- Microsoft.Network/stable/2017-03-01/trafficmanager.json
These settings apply only when --tag=package-2015-11
is specified on the command line.
input-file:
- Microsoft.Network/stable/2015-11-01/trafficmanager.json
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-libraries-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
- repo: azure-sdk-for-js
- repo: azure-sdk-for-ruby
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_traffic_manager']
- repo: azure-resource-manager-schemas
- repo: azure-powershell
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:
# last generated with commit 9e35e9c1e14dc46fcb1837ad108bba185ccaf9a9
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.TrafficManager
payload-flattening-threshold: 2
output-folder: $(csharp-sdks-folder)/trafficmanager/Microsoft.Azure.Management.TrafficManager/src/Generated
clear-output-folder: true
See configuration in readme.python.md
See configuration in readme.go.md
These settings apply only when --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>
.
java:
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.trafficmanager
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-trafficmanager