Skip to content

Latest commit

 

History

History
128 lines (88 loc) · 3.34 KB

File metadata and controls

128 lines (88 loc) · 3.34 KB

DNS resolver

see https://aka.ms/autorest

This is the AutoRest configuration file for DNS resolver.


Getting Started

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

title: DnsResolverManagementClient
description: DNS Resolver Client
openapi-type: arm
tag: package-preview-2023-07

Tag: package-preview-2023-07

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

input-file:
  - Microsoft.Network/preview/2023-07-01-preview/dnsresolver.json
  - Microsoft.Network/preview/2023-07-01-preview/dnsresolverpolicy.json

Tag: package-2022-07

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

input-file:
  - Microsoft.Network/stable/2022-07-01/dnsresolver.json

Tag: package-2020-04-preview

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

input-file:
  - Microsoft.Network/preview/2020-04-01-preview/dnsresolver.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-go
  - repo: azure-powershell

Python

See configuration in readme.python.md

Go

See configuration in readme.go.md

Suppression

directive:
  - where: $.paths
    from: dnsresolver.json
    suppress: OperationsAPIImplementation
    reason: Operation APIs for Microsoft.Network are to be defined in Network swagger.
  - suppress: TrackedResourceListByImmediateParent
    reason: Another list API naming approach is used over the specs.
  - where: $.definitions.Resource
    from: types.json
    suppress: DescriptionAndTitleMissing
    reason: Common types warning.
  - suppress: PreviewVersionOverOneYear
    reason: Preview API version is carried over from limited preview timeframe back in 2021.
  - suppress: PostOperationIdContainsUrlVerb
    reason: A different convention is adopted for naming the POST operations.

Multi-API/Profile support for AutoRest v3 generators

AutoRest V3 generators require the use of --tag=all-api-versions to select api files.

This block is updated by an automatic script. Edits may be lost!

# include the azure profile definitions from the standard location
# comment until the resolution steps are figured out here.
# require: $(this-folder)/../../../profiles/readme.md

# all the input files across all versions
# input-file:
# - $(this-folder)/Microsoft.Network/preview/2020-04-01-preview/dnsresolver.json

If there are files that should not be in the all-api-versions set, uncomment the exclude-file section below and add the file paths.

#exclude-file:
#  - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json