This is the AutoRest configuration file for CognitiveServices.
Microsoft will use data you send to Bing Search Services or the Translator Speech API to improve Microsoft products and services. Where you send personal data to these Cognitive Services, you are responsible for obtaining sufficient consent from the data subjects. The General Privacy and Security Terms in the Online Services Terms do not apply to these Cognitive Services. Please refer to the Microsoft Cognitive Services section in the Online Services Terms for details. Microsoft offers policy controls that may be used to disable new Cognitive Services deployments.
To build the SDK for CognitiveServices, simply Install AutoRest and in this folder, run:
autorest
To see additional help and options, run:
autorest --help
These are the global settings for the CognitiveServices API.
openapi-type: arm
tag: package-2024-10
These settings apply only when --tag=package-2024-10
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2024-10-01/cognitiveservices.json
These settings apply only when --tag=package-preview-2024-06
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/preview/2024-06-01-preview/cognitiveservices.json
These settings apply only when --tag=package-preview-2024-04
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/preview/2024-04-01-preview/cognitiveservices.json
These settings apply only when --tag=package-preview-2023-10
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/preview/2023-10-01-preview/cognitiveservices.json
suppressions:
- code: ResourceNameRestriction
reason: The resource name parameter 'deploymentName' is not a new added parameter and was already implemented in previous versions of API, we cannot add pattern now.
from: cognitiveservices.json
These settings apply only when --tag=package-2023-05
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2023-05-01/cognitiveservices.json
These settings apply only when --tag=package-2022-12
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2022-12-01/cognitiveservices.json
These settings apply only when --tag=package-2022-10
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2022-10-01/cognitiveservices.json
These settings apply only when --tag=package-2022-03
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2022-03-01/cognitiveservices.json
These settings apply only when --tag=package-2021-10
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2021-10-01/cognitiveservices.json
These settings apply only when --tag=package-2021-04
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2021-04-30/cognitiveservices.json
These settings apply only when --tag=package-2017-04
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/stable/2017-04-18/cognitiveservices.json
These settings apply only when --tag=package-2016-02-preview
is specified on the command line.
input-file:
- Microsoft.CognitiveServices/preview/2016-02-01-preview/cognitiveservices.json
directive:
- suppress: TrackedResourcePatchOperation
from: cognitiveservices.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}"]
reason: The resource accounts/commitmentPlans is not a tracked resource
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
- 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_cognitive_services']
- repo: azure-resource-manager-schemas
- repo: azure-powershell
See configuration in readme.python.md
See configuration in readme.go.md
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.management.cognitiveservices
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-cognitiveservices
batch:
- tag: package-2017-04
- tag: package-2016-02-preview
These settings apply only when --tag=package-2017-04 --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.cognitiveservices.v2017_04_18
output-folder: $(azure-libraries-for-java-folder)/sdk/cognitiveservices/mgmt-v2017_04_18
regenerate-manager: true
generate-interface: true
These settings apply only when --tag=package-2016-02-preview --java
is specified on the command line.
Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>
.
java:
namespace: com.microsoft.azure.management.cognitiveservices.v2016_02_01_preview
output-folder: $(azure-libraries-for-java-folder)/sdk/cognitiveservices/mgmt-v2016_02_01_preview
regenerate-manager: true
generate-interface: true