Skip to content

Commit 3e02bf7

Browse files
HeidiHanZhangyshahinyshahin-ms
authored andcommitted
Speaker Recognition V3.0 GA swagger files (Azure#15685)
* Create identification-swagger.yaml * Create verification-swagger.yaml * Update identification-swagger.yaml * Update verification-swagger.yaml * Update and rename identification-swagger.yaml to identification-swagger.json * Update and rename verification-swagger.yaml to verification-swagger.json * Added new files kept json for the move * Update based on review * typo * cspell * cspell * fix examples * pretty * Fix model semantic issues * pretty * Apply review comments * Update Identification.json * linter issues * Linter issues * api version required * Fix model issues * pretty checks * Update readme add go * fix required * update go readme * Clean autorest warnings * Fixes * fix regression * python * go * python trial2 * fix typescript * Remove typescipt not required * Attempt to fix last failing test Co-authored-by: Youssef Shahin <[email protected]> Co-authored-by: Youssef Shahin <[email protected]> Co-authored-by: Youssef Shahin <[email protected]>
1 parent ccdb52d commit 3e02bf7

32 files changed

+2943
-62
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Go
2+
3+
These settings apply only when `--go` is specified on the command line.
4+
5+
``` yaml $(go)
6+
go:
7+
license-header: MICROSOFT_MIT_NO_VERSION
8+
namespace: speakeridentification
9+
clear-output-folder: true
10+
```
11+
12+
### Go multi-api
13+
14+
``` yaml $(go) && $(multiapi)
15+
batch:
16+
- tag: release_2021-09-05
17+
```
18+
19+
### Tag: release_2021-09-05 and go
20+
21+
These settings apply only when `--tag=release_2021-09-05 --go` is specified on the command line.
22+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
23+
24+
``` yaml $(tag) == 'release_2021-09-05' && $(go)
25+
output-folder: $(go-sdk-folder)/services/cognitiveservices/2021-09-05/$(namespace)
26+
```
27+
28+
### Tag: identification_2_0_preview and go
29+
30+
These settings apply only when `--tag=identification_2_0_preview --go` is specified on the command line.
31+
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.
32+
33+
``` yaml $(tag) == 'identification_2_0_preview' && $(go)
34+
output-folder: $(go-sdk-folder)/services/cognitiveservices/v2.0-preview/$(namespace)
35+
```

specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.md

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,44 @@
22

33
> see https://aka.ms/autorest
44
5-
Configuration for generating Speaker Verification SDK.
5+
Configuration for generating Speaker Identification SDK.
6+
7+
The current release is `release_2021-09-05`.
68

79
``` yaml
8-
tag: identification_2_0_preview
10+
tag: release_2021-09-05
911
add-credentials: true
1012
openapi-type: data-plane
1113
```
1214
13-
The current release for the Authoring Endpoint is `identification_2_0_preview`.
15+
``` yaml
16+
tag: identification_2_0_preview
17+
add-credentials: true
18+
openapi-type: data-plane
19+
```
1420
1521
# Releases
1622
17-
## Identification 2.0
23+
## Identification 2021-09-05
24+
These settings apply only when `--tag=release_2021-09-05` is specified on the command line.
25+
26+
``` yaml $(tag) == 'release_2021-09-05'
27+
input-file: stable/2021-09-05/Identification.json
28+
```
29+
30+
## Identification 2.0 Preview
1831
These settings apply only when `--tag=identification_2_0_preview` is specified on the command line.
1932

2033
``` yaml $(tag) == 'identification_2_0_preview'
2134
input-file: preview/v2.0/Identification.json
2235
```
2336

37+
``` yaml $(multiapi)
38+
batch:
39+
- tag: release_2021-09-05
40+
- tag: identification_2_0_preview
41+
```
42+
2443
---
2544

2645
# Code Generation
@@ -33,14 +52,24 @@ This is not used by Autorest itself.
3352

3453
``` yaml $(swagger-to-sdk)
3554
swagger-to-sdk:
55+
- repo: azure-sdk-for-go
3656
- repo: azure-sdk-for-python
37-
- repo: azure-sdk-for-js
3857
- repo: azure-sdk-for-node
3958
```
4059

4160
### CSharp Settings
4261
These settings apply only when `--csharp` is specified on the command line.
43-
``` yaml $(csharp)
62+
``` yaml $(csharp) && $(tag) == 'release_2021-09-05'
63+
csharp:
64+
sync-methods: None
65+
license-header: MICROSOFT_MIT_NO_VERSION
66+
azure-arm: false
67+
namespace: Microsoft.Azure.CognitiveServices.speech.speaker.identification
68+
output-folder: $(csharp-sdks-folder)/CognitiveServices/speech.speaker.identification/src/Generated
69+
clear-output-folder: true
70+
```
71+
72+
``` yaml $(csharp) && $(tag) == 'identification_2_0_preview'
4473
csharp:
4574
sync-methods: None
4675
license-header: MICROSOFT_MIT_NO_VERSION
@@ -55,7 +84,7 @@ csharp:
5584
These settings apply only when `--java` is specified on the command line.
5685
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
5786

58-
``` yaml $(java)
87+
``` yaml $(java) && $(tag) == 'release_2021-09-05'
5988
java:
6089
azure-arm: true
6190
namespace: com.microsoft.azure.cognitiveservices.speech.speaker.identification
@@ -66,7 +95,26 @@ java:
6695
with-single-async-method: true
6796
```
6897

69-
## Multi-API/Profile support for AutoRest v3 generators
98+
``` yaml $(java) && $(tag) == 'identification_2_0_preview'
99+
java:
100+
azure-arm: true
101+
namespace: com.microsoft.azure.cognitiveservices.speech.speaker.identification
102+
license-header: MICROSOFT_MIT_NO_CODEGEN
103+
payload-flattening-threshold: 1
104+
output-folder: $(azure-libraries-for-java-folder)/cognitiveservices/data-plane/speech/speaker/identification
105+
with-optional-parameters: true
106+
with-single-async-method: true
107+
```
108+
109+
## Python
110+
111+
See configuration in [readme.python.md](./readme.python.md)
112+
113+
## Go
114+
115+
See configuration in [readme.go.md](./readme.go.md)
116+
117+
## Multi-API/Profile support for AutoRest v3 generators
70118

71119
AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files.
72120

@@ -78,15 +126,16 @@ require: $(this-folder)/../../../../../profiles/readme.md
78126
79127
# all the input files across all versions
80128
input-file:
129+
- $(this-folder)/stable/2021-09-05/Identification.json
81130
- $(this-folder)/preview/v2.0/Identification.json
82131
83132
```
84133

85-
If there are files that should not be in the `all-api-versions` set,
134+
If there are files that should not be in the `all-api-versions` set,
86135
uncomment the `exclude-file` section below and add the file paths.
87136

88137
``` yaml $(tag) == 'all-api-versions'
89-
#exclude-file:
138+
#exclude-file:
90139
# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json
91140
```
92141

specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.python.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ Use `--python-mode=update` if you already have a setup.py and just want to updat
88
python-mode: create
99
python:
1010
license-header: MICROSOFT_MIT_NO_VERSION
11+
add-credentials: true
1112
payload-flattening-threshold: 2
1213
namespace: azure.cognitiveservices.speech.speaker.identification
13-
package-name: azure-cognitiveservices-speech-speaker
14+
package-name: azure-cognitiveservices-speech-speaker-identification
1415
clear-output-folder: true
16+
no-namespace-folders: true
1517

1618
```
17-
``` yaml $(python) && $(python-mode) == 'update'
18-
python:
19-
no-namespace-folders: true
20-
output-folder: $(python-sdks-folder)/cognitiveservices/speech/speaker/identification
19+
20+
``` yaml $(tag) == 'release_2021-09-05'
21+
namespace: azure.cognitiveservices.speech.speaker.identification
22+
output-folder: $(python-sdks-folder)/cognitiveservices/speech/speaker/identification
2123
```
22-
``` yaml $(python) && $(python-mode) == 'create'
23-
python:
24-
basic-setup-py: true
25-
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-speech-speaker
24+
25+
``` yaml $(tag) == 'identification_v2_0_preview'
26+
namespace: azure.cognitiveservices.speech.speaker.identification
27+
output-folder: $(python-sdks-folder)/cognitiveservices/speech/speaker/identification
2628
```

specification/cognitiveservices/data-plane/SpeakerRecognition/Identification/readme.typescript.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)