Skip to content

Latest commit

 

History

History
224 lines (168 loc) · 7.17 KB

File metadata and controls

224 lines (168 loc) · 7.17 KB

MediaServices

see https://aka.ms/autorest

This is the AutoRest configuration file for MediaServices.


Getting Started

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

openapi-type: arm
tag: package-2020-05
opt-in-extensible-enums: true

Tag: package-2020-05

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

input-file:
  - Microsoft.Media/stable/2020-05-01/AccountFilters.json
  - Microsoft.Media/stable/2020-05-01/Accounts.json
  - Microsoft.Media/stable/2020-05-01/AssetsAndAssetFilters.json
  - Microsoft.Media/stable/2020-05-01/ContentKeyPolicies.json
  - Microsoft.Media/stable/2020-05-01/Encoding.json
  - Microsoft.Media/stable/2020-05-01/StreamingPoliciesAndStreamingLocators.json
  - Microsoft.Media/stable/2020-05-01/streamingservice.json
  - Microsoft.Media/stable/2020-05-01/Common.json
directive:
  - suppress: R2016
    where: $.definitions.TrackedResource.required
    reason: location is a required property for our patch calls

Tag: package-2020-02-preview

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

input-file:
  - Microsoft.Media/stable/2018-07-01/AccountFilters.json
  - Microsoft.Media/stable/2018-07-01/Accounts.json
  - Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json
  - Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json
  - Microsoft.Media/stable/2018-07-01/Encoding.json
  - Microsoft.Media/preview/2020-02-01-preview/MediaGraphs.json
  - Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json
  - Microsoft.Media/stable/2018-07-01/streamingservice.json

Tag: package-2019-09-preview

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

input-file:
  - Microsoft.Media/stable/2018-07-01/AccountFilters.json
  - Microsoft.Media/stable/2018-07-01/Accounts.json
  - Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json
  - Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json
  - Microsoft.Media/stable/2018-07-01/Encoding.json
  - Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json
  - Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json
  - Microsoft.Media/stable/2018-07-01/streamingservice.json

Tag: package-2019-05-preview

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

input-file:
  - Microsoft.Media/preview/2019-05-01-preview/AccountFilters.json
  - Microsoft.Media/preview/2019-05-01-preview/Accounts.json
  - Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json
  - Microsoft.Media/preview/2019-05-01-preview/Common.json
  - Microsoft.Media/preview/2019-05-01-preview/ContentKeyPolicies.json
  - Microsoft.Media/preview/2019-05-01-preview/Encoding.json
  - Microsoft.Media/preview/2019-05-01-preview/StreamingPoliciesAndStreamingLocators.json
  - Microsoft.Media/preview/2019-05-01-preview/streamingservice.json

Tag: package-2018-07

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

input-file:
  - Microsoft.Media/stable/2018-07-01/AccountFilters.json
  - Microsoft.Media/stable/2018-07-01/Accounts.json
  - Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json
  - Microsoft.Media/stable/2018-07-01/Common.json
  - Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json
  - Microsoft.Media/stable/2018-07-01/Encoding.json
  - Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json
  - Microsoft.Media/stable/2018-07-01/streamingservice.json

Tag: package-2015-10

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

input-file:
- Microsoft.Media/stable/2015-10-01/media.json

Tag: package-2018-03-preview

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

input-file:
- Microsoft.Media/preview/2018-03-30-preview/Accounts.json
- Microsoft.Media/preview/2018-03-30-preview/Assets.json
- Microsoft.Media/preview/2018-03-30-preview/ContentKeyPolicies.json
- Microsoft.Media/preview/2018-03-30-preview/Encoding.json
- Microsoft.Media/preview/2018-03-30-preview/StreamingPoliciesAndStreamingLocators.json
- Microsoft.Media/preview/2018-03-30-preview/streamingservice.json

Tag: package-2018-06-preview

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

input-file:
- Microsoft.Media/preview/2018-06-01-preview/Accounts.json
- Microsoft.Media/preview/2018-06-01-preview/Assets.json
- Microsoft.Media/preview/2018-06-01-preview/ContentKeyPolicies.json
- Microsoft.Media/preview/2018-06-01-preview/Encoding.json
- Microsoft.Media/preview/2018-06-01-preview/StreamingPoliciesAndStreamingLocators.json
- Microsoft.Media/preview/2018-06-01-preview/streamingservice.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
  - repo: azure-sdk-for-python
  - repo: azure-sdk-for-java
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-js
  - repo: azure-sdk-for-node
  - repo: azure-sdk-for-ruby
    after_scripts:
      - bundle install && rake arm:regen_all_profiles['azure_mgmt_media_services']
  - repo: azure-resource-manager-schemas
    after_scripts:
      - node sdkauto_afterscript.js mediaservices/resource-manager

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:
  # last generated from commit 3586e2989d502434c4f607dd38d40e46aabede5c
  azure-arm: true
  payload-flattening-threshold: 2
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Management.Media
  output-folder: $(csharp-sdks-folder)/mediaservices/Microsoft.Azure.Management.Media/src/Generated
  clear-output-folder: true

Python

See configuration in readme.python.md

Go

See configuration in readme.go.md

Java

See configuration in readme.java.md

Suppression

directive:
  - suppress: OBJECT_MISSING_REQUIRED_PROPERTY
    from: Encoding.json
    where: $.definitions.JobProperties
    reason: Input not required for Job update
  - suppress: OBJECT_MISSING_REQUIRED_PROPERTY
    from: Encoding.json
    where: $.definitions.JobProperties
    reason: Output not required for job update

AzureResourceSchema

See configuration in readme.azureresourceschema.md