Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Cognitive Services AutoSuggest Search SDK

see https://aka.ms/autorest

Configuration for generating AutoSuggest Search SDK.

The current release is release_1_0.

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

Releases

Release 1.0

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

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

CSharp Settings

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

csharp:
  namespace: Microsoft.Azure.CognitiveServices.Search.AutoSuggest
  output-folder: $(csharp-sdks-folder)/CognitiveServices/Search.BingAutoSuggest/src/Generated
directive:
  - suppress: R2022                       # the message to suppress
  - suppress: R3014                       # the message to suppress
  - suppress: R3016                       # the message to suppress

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:
  license-header: MICROSOFT_MIT_NO_VERSION
  add-credentials: true
  payload-flattening-threshold: 2
  namespace: azure.cognitiveservices.search.autosuggest
  package-name: azure-cognitiveservices-search-autosuggest
  clear-output-folder: true
python:
  no-namespace-folders: true
  output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-search-autosuggest/azure/cognitiveservices/search/autosuggest
python:
  basic-setup-py: true
  output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-search-autosuggest

Go

See configuration in readme.go.md

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

java:
  azure-arm: true
  namespace: com.microsoft.azure.cognitiveservices.search.autosuggest
  license-header: MICROSOFT_MIT_NO_CODEGEN
  payload-flattening-threshold: 1
  output-folder: $(azure-libraries-for-java-folder)/cognitiveservices/data-plane/search/bingautosuggest
  with-optional-parameters: true
  prefix-model-type: Bing
  with-single-async-method: 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)/stable/v1.0/AutoSuggest.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