Skip to content

Commit fbcaeeb

Browse files
[Search] Update REST commit to latest from main - b8d48bc (#25812)
* Update REST commit to latest from main Remove outdated comments from autorest.md * Update code generation comments in autorest.md Update the contributing.md doc * Add a missing article in a doc line * Use permalink for doc link, since it is in autorest.md
1 parent 64f11bc commit fbcaeeb

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ public OcrSkill(System.Collections.Generic.IEnumerable<Azure.Search.Documents.In
15721572
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage SrLatn { get { throw null; } }
15731573
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Sv { get { throw null; } }
15741574
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Tr { get { throw null; } }
1575+
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Unk { get { throw null; } }
15751576
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage ZhHans { get { throw null; } }
15761577
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage ZhHant { get { throw null; } }
15771578
public bool Equals(Azure.Search.Documents.Indexes.Models.OcrSkillLanguage other) { throw null; }

sdk/search/Azure.Search.Documents/src/Generated/Models/OcrSkillLanguage.cs

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/search/Azure.Search.Documents/src/Generated/Models/QueryLanguage.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/search/Azure.Search.Documents/src/autorest.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
# Azure.Search.Documents Code Generation
22

3-
Run `/sdk/search/generate.ps1` to generate code.
3+
Run `dotnet build /t:GenerateCode` in the `src` directory to generate SDK code.
4+
5+
See the [Contributing guidelines](https://github.com/Azure/azure-sdk-for-net/blob/fe0bf0e7e84a406ec2102c194ea05ccd5011a141/sdk/search/CONTRIBUTING.md) for more details.
46

57
## AutoRest Configuration
68
> see https://aka.ms/autorest
79
810
## Swagger Source(s)
9-
AutoRest doesn't play nicely with multiple remote swagger files. It will
10-
however merge two local swagger files together automagically. At some point,
11-
we should merge the Service and Index swagger files together but for now we
12-
copy them locally in `/sdk/search/generate.ps1` and reference them here.
1311
```yaml
1412
title: SearchServiceClient
1513
input-file:
16-
- https://github.com/shmed/azure-rest-api-specs/blob/7a003b0aa0def1a454ff0844fa4c6a276bc1ee53/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json
17-
- https://github.com/shmed/azure-rest-api-specs/blob/7a003b0aa0def1a454ff0844fa4c6a276bc1ee53/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json
14+
- https://github.com/Azure/azure-rest-api-specs/blob/b8d48bca1298614fdf7734c26e21a88adf5375d9/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json
15+
- https://github.com/Azure/azure-rest-api-specs/blob/b8d48bca1298614fdf7734c26e21a88adf5375d9/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json
1816
modelerfour:
1917
seal-single-value-enum-by-default: true
2018
```

sdk/search/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ client libraries. You can learn about these shared features in the
2020

2121
## Code Generation
2222
Please do not edit any of the code in the `/Generated` folders directly. If
23-
you need to update a swagger file or change the generator, you can regenerate
24-
by running the `\sdk\search\generate.ps1` script.
23+
you need to update code in response to a swagger file change or a code generator update,
24+
you can regenerate the code by running `dotnet build /t:GenerateCode` in the `src` directory.
2525

2626
## Testing
2727
Please ensure all tests pass with any changes and additional tests are added to

0 commit comments

Comments
 (0)