Skip to content

Latest commit

 

History

History
184 lines (130 loc) · 4.81 KB

File metadata and controls

184 lines (130 loc) · 4.81 KB

MonitorClient

see https://aka.ms/autorest

This is the AutoRest configuration file for MonitorClient.


Getting Started

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

title: MonitorClient
description: Monitor Management Client
openapi-type: data-plane
tag: package-preview-2023-05

Tag: package-preview-2023-05

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

input-file:
  - Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json

Tag: package-preview-2023-03

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

input-file:
  - Microsoft.Insights/preview/2023-03-01-preview/metricBatch.json
  - preview/2018-09-01-preview/metricsCreate_API.json

Tag: package-2018-09-preview

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

input-file:
- preview/2018-09-01-preview/metricsCreate_API.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

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.Monitor.Metrics
  output-folder: $(csharp-sdks-folder)/Monitor/Azure.Metrics/Generated
  clear-output-folder: true

Go

These settings apply only when --go is specified on the command line.

go:
  license-header: MICROSOFT_APACHE_NO_VERSION
  namespace: monitor
  clear-output-folder: true

Go multi-api

batch:
  - tag: package-2018-09-preview

Tag: package-2018-09-preview and go

These settings apply only when --tag=package-2018-09-preview --go is specified on the command line. Please also specify --go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>.

output-folder: $(go-sdk-folder)/services/preview/monitor/2018-09-01-preview/monitor

Python

These settings apply only when --python is specified on the command line. Please also specify --python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>. Use --python-mode=update if you already have a setup.py and just want to update the code itself.

python-mode: create
python:
  azure-arm: true
  license-header: MICROSOFT_MIT_NO_VERSION
  payload-flattening-threshold: 2
  namespace: azure.monitor
  package-name: azure-monitor
  package-version: 0.5.0
  clear-output-folder: true
python:
  no-namespace-folders: true
  output-folder: $(python-sdks-folder)/azure-monitor/azure/monitor
python:
  basic-setup-py: true
  output-folder: $(python-sdks-folder)/azure-monitor/azure/monitor

Java

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>.

azure-arm: true
fluent: true
namespace: com.microsoft.azure.monitor
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/monitor/data-plane

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
require: $(this-folder)/../../../profiles/readme.md

# all the input files across all versions
input-file:
  - $(this-folder)/preview/2018-09-01-preview/metricsCreate_API.json
  - $(this-folder)/Microsoft.Insights/preview/2023-03-01-preview/metricBatch.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