1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
|
# MachineLearningServices
> see https://aka.ms/autorest
This is an autorest configuration file for the SDK vNext effort. It is a modified
version of the file used for AzureML's ARM APIs, which is defined [here](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/machinelearningservices/resource-manager/readme.md).
---
## Configuration
### Basic Information
These are the global settings for the Machine Learning Services API.
```yaml
openapi-type: arm
```
### Transformation
### Tag: model-dataplane
These settings apply only when `--tag=model-dataplane` is specified on the command line.
```yaml $(tag) == 'model-dataplane'
input-file:
- Microsoft.MachineLearningServices/stable/model-dataplane/swagger.json
output-folder: $(python-sdks-folder)/model_dataplane
```
### Tag: dataset-dataplane
These settings apply only when `--tag=dataset-dataplane` is specified on the command line.
```yaml $(tag) == 'dataset-dataplane'
input-file:
- Microsoft.MachineLearningServices/stable/dataset-dataplane/swagger.json
output-folder: $(python-sdks-folder)/dataset_dataplane
```
### Tag: v2022-05-01
These settings apply only when `--tag=v2022-05-01` is specified on the command line.
```yaml $(tag) == 'v2022-05-01'
input-file:
- Microsoft.MachineLearningServices/stable/2022-05-01/mfe.json
- Microsoft.MachineLearningServices/stable/2022-05-01/machineLearningServices.json
- Microsoft.MachineLearningServices/stable/2022-05-01/workspaceFeatures.json
output-folder: $(python-sdks-folder)/v2022_05_01
```
### Tag: v2022-02-01-preview
These settings apply only when `--tag=v2022-02-01-preview` is specified on the command line.
```yaml $(tag) == 'v2022-02-01-preview'
input-file:
- Microsoft.MachineLearningServices/preview/2022-02-01-preview/mfe.json
output-folder: $(python-sdks-folder)/v2022_02_01_preview
```
### Tag: v2022-01-01-preview
These settings apply only when `--tag=v2022-01-01-preview` is specified on the command line.
```yaml $(tag) == 'v2022-01-01-preview'
input-file:
- Microsoft.MachineLearningServices/preview/2022-01-01-preview/machineLearningServices.json
- Microsoft.MachineLearningServices/preview/2022-01-01-preview/workspaceFeatures.json
output-folder: $(python-sdks-folder)/v2022_01_01_preview
```
### Tag: mfe-dataplane-preview
These settings apply only when `--v2020-09-01-dataplanepreview` is specified on the command line.
```yaml $(tag) == 'v2020-09-01-dataplanepreview'
input-file:
- Microsoft.MachineLearningServices/preview/2020-09-01-dataplanepreview/mfe.json
output-folder: $(python-sdks-folder)/v2020_09_01_dataplanepreview
```
### Tag: mfe-dataplane-preview-10-01
These settings apply only when `--v2021-10-01-dataplanepreview` is specified on the command line.
```yaml $(tag) == 'v2021-10-01-dataplanepreview'
input-file:
- Microsoft.MachineLearningServices/preview/2021-10-01-dataplanepreview/mfe.json
output-folder: $(python-sdks-folder)/v2021_10_01_dataplanepreview
```
### Tag: runhistory
These settings apply only when `--tag=runhistory` is specified on the command line.
```yaml $(tag) == 'runhistory'
input-file:
- Microsoft.MachineLearningServices/preview/runhistory/run-history.json
output-folder: $(python-sdks-folder)/runhistory
```
### Tag: registry-discovery
These settings apply only when `--tag=registry-discovery` is specified on the command line.
```yaml $(tag) == 'registry-discovery'
input-file:
- Microsoft.MachineLearningServices/preview/registry-discovery/registry-discovery.json
output-folder: $(python-sdks-folder)/registry_discovery
```
### Tag: v2022-10-01-preview
These settings apply only when `--tag=v2022-10-01-preview` is specified on the command line.
```yaml $(tag) == 'v2022-10-01-preview'
input-file:
- Microsoft.MachineLearningServices/preview/2022-10-01-preview/machineLearningServices.json
- Microsoft.MachineLearningServices/preview/2022-10-01-preview/registries.json
- Microsoft.MachineLearningServices/preview/2022-10-01-preview/workspaceFeatures.json
- Microsoft.MachineLearningServices/preview/2022-10-01-preview/mfe.json
output-folder: $(python-sdks-folder)/v2022_10_01_preview
```
### Tag: multiapi
These settings apply only when `--multiapi` is specified on the command line.
```yaml $(multiapi)
clear-output-folder: true
batch:
- tag: model-dataplane
- tag: dataset-dataplane
- tag: v2022-05-01
- tag: v2022-02-01-preview
- tag: v2022-01-01-preview
- tag: runhistory
- tag: v2020-09-01-dataplanepreview
- tag: registry-discovery
- tag: v2022-10-01-preview
#unstable tags
- tag: v2021-10-01-dataplanepreview
- multiapiscript: true
```
### Multi API Script
```yaml $(multiapiscript)
clear-output-folder: false
output-folder: $(python-sdks-folder)
perform-load: false
```
---
# Code Generation
## Swagger to SDK
This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.
```yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
- repo: azure-cli-extensions
```
## 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>`.
```yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Management.MachineLearningServices
output-folder: $(csharp-sdks-folder)/src/Generated
clear-output-folder: true
```
## 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>`.
```yaml $(java)
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.machinelearning.services
license-header: MICROSOFT_MIT_NO_CODEGEN
payload-flattening-threshold: 1
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-machinelearning/services
```
### Java multi-api
```yaml $(java) && $(multiapi)
batch:
- tag: package-2020-06-01
```
### Tag: package-2020-06-01 and java
These settings apply only when `--tag=package-2020-06-01 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
```yaml $(tag) == 'package-2020-06-01' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.machinelearningservices.v2020_06_01
output-folder: $(azure-libraries-for-java-folder)/sdk/machinelearningservices/mgmt-v2020_06_01
regenerate-manager: true
generate-interface: 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!
```yaml $(tag) == 'all-api-versions' /* autogenerated */
# 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)/Microsoft.MachineLearningServices/stable/2020-06-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2020-04-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2020-03-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2020-01-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2019-11-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2019-06-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2019-05-01/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/stable/2018-11-19/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2020-05-01-preview/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2020-04-01-preview/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2020-02-18-preview/machineLearningServices.json
- $(this-folder)/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.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.
```yaml $(tag) == 'all-api-versions'
#exclude-file:
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
```
|