Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 2.79 KB

File metadata and controls

98 lines (75 loc) · 2.79 KB

Cognitive Services Personalizer SDK

Releases

see https://aka.ms/autorest

The current release is release_1_0. A preview release release_1_0 is also available

tag: release_1_0
add-credentials: true
openapi-type: data-plane

Release 1.0

These settings apply only when --tag=release_1_0 is specified on the command line.

input-file: 
  - stable/v1.0/Personalizer.json

Release 1.0-Preview

These settings apply only when --tag=release_1_0_preview is specified on the command line.

input-file: 
  - preview/v1.0/Personalizer.json

Release 1.0-Preview

These settings apply only when --tag=release_1_1_preview.1 is specified on the command line.

input-file: 
  - preview/v1.1-preview.1/Personalizer.json

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-python
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-js
  - repo: azure-sdk-for-ruby
    after_scripts:
      - bundle install && rake arm:regen_all_profiles['azure_cognitiveservices_personalizer']

CSharp Settings

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

csharp:
  license-header: MICROSOFT_MIT_NO_VERSION
  azure-arm: false
  namespace: Microsoft.Azure.CognitiveServices.Personalizer
  output-folder: $(csharp-sdks-folder)/CognitiveServices/Personalizer/src/Generated
  sync-methods: all
  clear-output-folder: true

directive:
  # TODO: Remove this workaround once AutoRest fixes the incorrect code generation when using a parameterized host and both client and operation groups paths.
  - from: source-file-csharp
    where: $
    transform: >-
      return $
        .replace( /\"this.Endpoint\"/g, "\"this.Client.Endpoint\"" )
        .replace( /this.Endpoint/g, "Client.Endpoint" );

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)/stable/v1.0/Personalizer.json
  - $(this-folder)/preview/v1.0/Personalizer.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