Skip to content

Latest commit

 

History

History
105 lines (72 loc) · 3.03 KB

File metadata and controls

105 lines (72 loc) · 3.03 KB

MediaServices - Live Video Analytics Edge

see https://aka.ms/autorest

This is the AutoRest configuration file for Live video analytics edge.

These swaggers are used to generate the SDKs for Live Video Analytics. These SDKs are models only (no client) and customer would need to use IoT SDK to send direct method calls to IoT hub. These SDKs are not ARM based and doesn't do any REST calls. all operations are sent as direct methods on IoT hub.


Getting Started

To build the SDK for Live video analytics edge, 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 Live video analytics API.

openapi-type: data-plane
tag: package-lva-2-0-0-preview

directive:
  - where:
      -  $.definitions.MethodRequest.properties.methodName
    suppress:
      - RequiredReadOnlyProperties

Tag: package-lva-1-0-4-preview

These settings apply only when --tag=package-lva-2-0-0-preview is specified on the command line.

input-file:
  - LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json
  - LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.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
    after_scripts:
      - bundle install && rake arm:regen_all_profiles['azure_media_lva_edge']

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: false
  payload-flattening-threshold: 2
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Media.LiveVideoAnalytics.Edge
  output-folder: $(csharp-sdks-folder)/mediaservices/Microsoft.Azure.Media.LiveVideoAnalytics.Edge/src/Generated
  clear-output-folder: true
  use-internal-constructors: true
  override-client-name: LiveVideoAnalyticsEdgeClient
  use-datetimeoffset: true

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)/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.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