Skip to content

Commit

Permalink
[Search] Update REST commit to latest from main - b8d48bca (#25812)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Mohit-Chakraborty authored Dec 10, 2021
1 parent 64f11bc commit fbcaeeb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,7 @@ public OcrSkill(System.Collections.Generic.IEnumerable<Azure.Search.Documents.In
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage SrLatn { get { throw null; } }
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Sv { get { throw null; } }
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Tr { get { throw null; } }
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage Unk { get { throw null; } }
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage ZhHans { get { throw null; } }
public static Azure.Search.Documents.Indexes.Models.OcrSkillLanguage ZhHant { get { throw null; } }
public bool Equals(Azure.Search.Documents.Indexes.Models.OcrSkillLanguage other) { throw null; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions sdk/search/Azure.Search.Documents/src/autorest.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Azure.Search.Documents Code Generation

Run `/sdk/search/generate.ps1` to generate code.
Run `dotnet build /t:GenerateCode` in the `src` directory to generate SDK code.

See the [Contributing guidelines](https://github.com/Azure/azure-sdk-for-net/blob/fe0bf0e7e84a406ec2102c194ea05ccd5011a141/sdk/search/CONTRIBUTING.md) for more details.

## AutoRest Configuration
> see https://aka.ms/autorest
## Swagger Source(s)
AutoRest doesn't play nicely with multiple remote swagger files. It will
however merge two local swagger files together automagically. At some point,
we should merge the Service and Index swagger files together but for now we
copy them locally in `/sdk/search/generate.ps1` and reference them here.
```yaml
title: SearchServiceClient
input-file:
- https://github.com/shmed/azure-rest-api-specs/blob/7a003b0aa0def1a454ff0844fa4c6a276bc1ee53/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json
- https://github.com/shmed/azure-rest-api-specs/blob/7a003b0aa0def1a454ff0844fa4c6a276bc1ee53/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json
- https://github.com/Azure/azure-rest-api-specs/blob/b8d48bca1298614fdf7734c26e21a88adf5375d9/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json
- https://github.com/Azure/azure-rest-api-specs/blob/b8d48bca1298614fdf7734c26e21a88adf5375d9/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json
modelerfour:
seal-single-value-enum-by-default: true
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/search/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ client libraries. You can learn about these shared features in the

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

## Testing
Please ensure all tests pass with any changes and additional tests are added to
Expand Down

0 comments on commit fbcaeeb

Please sign in to comment.