Skip to content

Commit

Permalink
Bump core from 9f5630b to eb24510 (#1246)
Browse files Browse the repository at this point in the history
Bumps [core](https://github.com/microsoft/typespec) from `9f5630b` to
`eb24510`.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/typespec/commit/eb245109c05e98e10fdd75c48040d33c432a6a98"><code>eb24510</code></a>
Add deprecation notice in ref docs (<a
href="https://redirect.github.com/microsoft/typespec/issues/4025">#4025</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/3aa2f5c373f6eb8bfc8fb12ecb8722b0efd68b63"><code>3aa2f5c</code></a>
fix the response does not deserialize issue (<a
href="https://redirect.github.com/microsoft/typespec/issues/4029">#4029</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/f9317013867704ccd5dc171c9f4002a3d7d7a292"><code>f931701</code></a>
Add PostVisit method (<a
href="https://redirect.github.com/microsoft/typespec/issues/4026">#4026</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/e746179f66128de843e00d61ebb945f93487d8e0"><code>e746179</code></a>
Cadl ranch test framework (<a
href="https://redirect.github.com/microsoft/typespec/issues/3964">#3964</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/2fdb218b69b71360e8bc68b599649fe4939c4526"><code>2fdb218</code></a>
exclude when cspell.yaml changed (<a
href="https://redirect.github.com/microsoft/typespec/issues/4021">#4021</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/5f41741ef3476c518fe013fb9623b93e5e2b19c1"><code>5f41741</code></a>
Bump braces from 3.0.2 to 3.0.3 in /packages/http-client-csharp (<a
href="https://redirect.github.com/microsoft/typespec/issues/3606">#3606</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/3087671788840b3612f15c19b5b3f4e472565eff"><code>3087671</code></a>
Add java emitter label (<a
href="https://redirect.github.com/microsoft/typespec/issues/3963">#3963</a>)</li>
<li>See full diff in <a
href="https://github.com/microsoft/typespec/compare/9f5630b4303340ee40283a897094cad13487a239...eb245109c05e98e10fdd75c48040d33c432a6a98">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
  • Loading branch information
dependabot[bot] and timotheeguerin authored Jul 26, 2024
1 parent f6af1ee commit 4434dc2
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core
Submodule core updated 92 files
+8 −0 .github/policies/issues.triage.generated.yml
+6 −0 .github/policies/prs.triage.generated.yml
+23 −22 CONTRIBUTING.md
+1 −0 cspell.yaml
+3 −0 docs/standard-library/built-in-data-types.md
+9 −0 docs/standard-library/built-in-decorators.md
+6 −1 eng/common/config/labels.ts
+1 −0 eng/tsp-core/pipelines/pr-tools.yml
+170 −8 packages/http-client-csharp/eng/scripts/Generate.ps1
+37 −0 packages/http-client-csharp/eng/scripts/Generation.psm1
+104 −0 packages/http-client-csharp/eng/scripts/Test-CadlRanch.ps1
+3 −1 packages/http-client-csharp/eng/scripts/Test-Packages.ps1
+5 −0 packages/http-client-csharp/eng/test-configurations/cadlranch.runsettings
+25 −0 ...soft.Generator.CSharp.ClientModel.StubLibrary/src/Microsoft.Generator.CSharp.ClientModel.StubLibrary.csproj
+20 −0 ...es/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel.StubLibrary/src/StubLibraryPlugin.cs
+98 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel.StubLibrary/src/StubVisitor.cs
+35 −8 ...ges/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/RestClientProvider.cs
+28 −14 ...client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs
+1 −1 ...p/generator/Microsoft.Generator.CSharp.ClientModel/test/Microsoft.Generator.CSharp.ClientModel.Tests.csproj
+1 −1 ...tp-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/RestClientProviderTests.cs
+1 −1 ...-csharp/generator/Microsoft.Generator.CSharp.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs
+2 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/InputApiKeyAuth.cs
+3 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/InputAuth.cs
+4 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/InputOAuth2Auth.cs
+2 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/OperationLongRunning.cs
+2 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/OperationPaging.cs
+2 −0 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/OperationResponse.cs
+3 −0 ...ges/http-client-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/OperationResponseHeader.cs
+49 −0 ...sharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/Serialization/TypeSpecInputAuthConverter.cs
+2 −1 ...ent-csharp/generator/Microsoft.Generator.CSharp.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs
+20 −7 packages/http-client-csharp/generator/Microsoft.Generator.CSharp.sln
+75 −41 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/OutputLibraryVisitor.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/ExpressionPropertyBody.cs
+1 −1 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Primitives/MethodPropertyBody.cs
+26 −6 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Properties/launchSettings.json
+30 −4 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/ConstructorProvider.cs
+11 −5 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/MethodProvider.cs
+16 −2 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/PropertyProvider.cs
+19 −4 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/TypeProvider.cs
+17 −3 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Writers/CodeWriter.cs
+10 −10 packages/http-client-csharp/generator/Microsoft.Generator.CSharp/test/OutputLibraryVisitorTests.cs
+36 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/CadlRanchTestBase.cs
+28 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Http/Authentication/ApiKey/ApiKeyTests.cs
+28 −0 ...es/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Http/Authentication/Http/Custom/CustomTests.cs
+20 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/BuildPropertiesAttribute.cs
+42 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/CadlRanchServer.cs
+26 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/CadlRanchServerSession.cs
+24 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/CadlRanchTestAttribute.cs
+128 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/ProcessTracker.cs
+107 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/TestServerBase.cs
+78 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/Infrastructure/TestServerSessionBase.cs
+19 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch.Tests/TestProjects.CadlRanch.Tests.csproj
+6 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/Configuration.json
+38 −0 ...tp-client-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/src/Generated/ApiKeyClient.cs
+12 −0 ...nt-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/src/Generated/ApiKeyClientOptions.cs
+36 −0 ...erator/TestProjects/CadlRanch/http/authentication/api-key/src/Generated/Models/InvalidAuth.Serialization.cs
+16 −0 ...ent-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/src/Generated/Models/InvalidAuth.cs
+202 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/api-key/tspCodeModel.json
+6 −0 ...ages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/Configuration.json
+38 −0 ...lient-csharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/src/Generated/CustomClient.cs
+12 −0 ...sharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/src/Generated/CustomClientOptions.cs
+36 −0 ...or/TestProjects/CadlRanch/http/authentication/http/custom/src/Generated/Models/InvalidAuth.Serialization.cs
+16 −0 ...csharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/src/Generated/Models/InvalidAuth.cs
+203 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/http/custom/tspCodeModel.json
+6 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/Configuration.json
+36 −0 ...nerator/TestProjects/CadlRanch/http/authentication/oauth2/src/Generated/Models/InvalidAuth.Serialization.cs
+16 −0 ...ient-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/src/Generated/Models/InvalidAuth.cs
+36 −0 ...ttp-client-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/src/Generated/OAuth2Client.cs
+12 −0 ...ent-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/src/Generated/OAuth2ClientOptions.cs
+204 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/oauth2/tspCodeModel.json
+6 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/union/Configuration.json
+38 −0 .../http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/union/src/Generated/UnionClient.cs
+12 −0 ...lient-csharp/generator/TestProjects/CadlRanch/http/authentication/union/src/Generated/UnionClientOptions.cs
+171 −0 packages/http-client-csharp/generator/TestProjects/CadlRanch/http/authentication/union/tspCodeModel.json
+0 −0 packages/http-client-csharp/generator/TestProjects/Local.Tests/ExtensibleEnumTests.cs
+0 −0 packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
+3 −3 ...-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.RestClient.cs
+70 −50 ...http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs
+0 −0 packages/http-client-csharp/generator/TestProjects/Plugin.Tests/TestProjects.Plugin.Tests.csproj
+105 −0 packages/http-client-csharp/generator/docs/cadl-ranch.md
+ packages/http-client-csharp/generator/docs/generation-structure.png
+ packages/http-client-csharp/generator/docs/launch-settings.png
+ packages/http-client-csharp/generator/docs/runsettings.png
+ packages/http-client-csharp/generator/docs/test-structure.png
+3,216 −395 packages/http-client-csharp/package-lock.json
+2 −1 packages/http-client-csharp/package.json
+5 −0 packages/http-client-csharp/readme.md
+5 −0 packages/tspd/src/ref-doc/emitters/docusaurus.ts
+19 −8 packages/tspd/src/ref-doc/emitters/markdown.ts
+25 −17 packages/tspd/src/ref-doc/extractor.ts
+5 −0 packages/tspd/src/ref-doc/types.ts
+32 −0 packages/tspd/test/ref-doc/emitters/markdown/model.test.ts
28 changes: 28 additions & 0 deletions docs/libraries/azure-core/reference/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ op Azure.Core.LongRunningResourceCollectionAction(apiVersion: string): Azure.Cor

### `LongRunningResourceCreateOrReplace` {#Azure.Core.LongRunningResourceCreateOrReplace}

:::warning
**Deprecated**: Use `LongRunningResourceCreateOrReplace` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `LongRunningResourceCreateOrReplace` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand All @@ -357,6 +361,10 @@ op Azure.Core.LongRunningResourceCreateOrReplace(apiVersion: string, resource: R

### `LongRunningResourceCreateOrUpdate` {#Azure.Core.LongRunningResourceCreateOrUpdate}

:::warning
**Deprecated**: Use `LongRunningResourceCreateOrUpdate` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `LongRunningResourceCreateOrUpdate` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand All @@ -376,6 +384,10 @@ op Azure.Core.LongRunningResourceCreateOrUpdate(apiVersion: string, contentType:

### `LongRunningResourceCreateWithServiceProvidedName` {#Azure.Core.LongRunningResourceCreateWithServiceProvidedName}

:::warning
**Deprecated**: Use `LongRunningResourceCreateWithServiceProvidedName` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `LongRunningResourceCreateWithServiceProvidedName` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand Down Expand Up @@ -476,6 +488,10 @@ op Azure.Core.ResourceCollectionAction(apiVersion: string): {} | Azure.Core.Foun

### `ResourceCreateOrReplace` {#Azure.Core.ResourceCreateOrReplace}

:::warning
**Deprecated**: Use `ResourceCreateOrReplace` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `ResourceCreateOrReplace` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand All @@ -495,6 +511,10 @@ op Azure.Core.ResourceCreateOrReplace(apiVersion: string, resource: Resource): {

### `ResourceCreateOrUpdate` {#Azure.Core.ResourceCreateOrUpdate}

:::warning
**Deprecated**: Use `LongRunningResourceCreateOrReplace` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `ResourceCreateOrUpdate` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand All @@ -514,6 +534,10 @@ op Azure.Core.ResourceCreateOrUpdate(apiVersion: string, contentType: "applicati

### `ResourceCreateWithServiceProvidedName` {#Azure.Core.ResourceCreateWithServiceProvidedName}

:::warning
**Deprecated**: Use `ResourceCreateWithServiceProvidedName` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `ResourceCreateWithServiceProvidedName` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand Down Expand Up @@ -590,6 +614,10 @@ op Azure.Core.ResourceRead(apiVersion: string): {} | Azure.Core.Foundations.Erro

### `ResourceUpdate` {#Azure.Core.ResourceUpdate}

:::warning
**Deprecated**: Use `ResourceUpdate` from a `ResourceOperations` interface instance.
:::

DEPRECATED: Use `ResourceUpdate` from a `ResourceOperations` interface instance.
This can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;`.
See https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.
Expand Down
4 changes: 4 additions & 0 deletions docs/libraries/azure-resource-manager/reference/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,10 @@ model Azure.ResourceManager.CommonTypes.TrackedResource

### `UserAssignedIdentities` {#Azure.ResourceManager.CommonTypes.UserAssignedIdentities}

:::warning
**Deprecated**: Do not use this model. Instead, use Record<UserAssignedIdentity | null> directly. Using this model will result in a different client SDK when generated from TypeSpec compared to the Swagger.
:::

The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.

```typespec
Expand Down
16 changes: 16 additions & 0 deletions docs/libraries/azure-resource-manager/reference/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ op Azure.ResourceManager.ResourceCreateSync.createOrUpdate(provider: "Microsoft.

### `ResourceDeleteAsync` {#Azure.ResourceManager.ResourceDeleteAsync}

:::warning
**Deprecated**: This should be deprecated in a future release
:::

```typespec
interface Azure.ResourceManager.ResourceDeleteAsync<Resource, BaseParameters>
```
Expand Down Expand Up @@ -390,6 +394,10 @@ op Azure.ResourceManager.ResourceListBySubscription.listBySubscription(apiVersio

### `ResourceOperations` {#Azure.ResourceManager.ResourceOperations}

:::warning
**Deprecated**: Use Azure.ResourceManager.TrackedResourceOperations instead
:::

```typespec
interface Azure.ResourceManager.ResourceOperations<Resource, Properties, BaseParameters>
```
Expand Down Expand Up @@ -845,6 +853,10 @@ op Azure.ResourceManager.ArmResourceCreateOrUpdateAsync(provider: "Microsoft.Thi

### `ArmResourceCreateOrUpdateSync` {#Azure.ResourceManager.ArmResourceCreateOrUpdateSync}

:::warning
**Deprecated**: Please use ArmResourceCreateOrReplaceSync instead
:::

DEPRECATED: Please use ArmResourceCreateOrReplaceSync instead

```typespec
Expand All @@ -863,6 +875,10 @@ op Azure.ResourceManager.ArmResourceCreateOrUpdateSync(provider: "Microsoft.This

### `ArmResourceDeleteAsync` {#Azure.ResourceManager.ArmResourceDeleteAsync}

:::warning
**Deprecated**: Use 'ArmResourceDeleteWithoutOkAsync' instead
:::

```typespec
op Azure.ResourceManager.ArmResourceDeleteAsync(provider: "Microsoft.ThisWillBeReplaced"): Response | Error
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ interface MyInterface {}

### `@clientFormat` {#@Azure.ClientGenerator.Core.clientFormat}

:::warning
**Deprecated**: @clientFormat decorator is deprecated. Use `@encode` decorator in `@typespec/compiler` instead.
:::

DEPRECATED: Use `@encode` decorator in `@typespec/compiler` instead.

Can be used to explain the client type that the current TYPESPEC
Expand Down Expand Up @@ -291,6 +295,10 @@ op test: void;

### `@exclude` {#@Azure.ClientGenerator.Core.exclude}

:::warning
**Deprecated**: @exclude decorator is deprecated. Use `@usage` and `@access` decorator instead.
:::

DEPRECATED: Use `@usage` and `@access` decorator instead.

Whether to exclude a model from generation for specific languages. By default we generate
Expand Down Expand Up @@ -321,6 +329,10 @@ model ModelToExclude {

### `@flattenProperty` {#@Azure.ClientGenerator.Core.flattenProperty}

:::warning
**Deprecated**: @flattenProperty decorator is not recommended to use.
:::

Set whether a model property should be flattened or not.

```typespec
Expand Down Expand Up @@ -349,6 +361,10 @@ model Bar {}

### `@include` {#@Azure.ClientGenerator.Core.include}

:::warning
**Deprecated**: @include decorator is deprecated. Use `@usage` and `@access` decorator instead.
:::

DEPRECATED: Use `@usage` and `@access` decorator instead.

Whether to include a model in generation for specific languages. By default we generate
Expand Down Expand Up @@ -379,6 +395,10 @@ model ModelToInclude {

### `@internal` {#@Azure.ClientGenerator.Core.internal}

:::warning
**Deprecated**: @internal decorator is deprecated. Use `@access` decorator instead.
:::

DEPRECATED: Use `@access` decorator instead.

Whether to mark an operation as internal for specific languages,
Expand Down
10 changes: 10 additions & 0 deletions packages/typespec-client-generator-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ interface MyInterface {}

#### `@clientFormat`

_Deprecated: @clientFormat decorator is deprecated. Use `@encode` decorator in `@typespec/compiler` instead._

DEPRECATED: Use `@encode` decorator in `@typespec/compiler` instead.

Can be used to explain the client type that the current TYPESPEC
Expand Down Expand Up @@ -308,6 +310,8 @@ op test: void;

#### `@exclude`

_Deprecated: @exclude decorator is deprecated. Use `@usage` and `@access` decorator instead._

DEPRECATED: Use `@usage` and `@access` decorator instead.

Whether to exclude a model from generation for specific languages. By default we generate
Expand Down Expand Up @@ -338,6 +342,8 @@ model ModelToExclude {

#### `@flattenProperty`

_Deprecated: @flattenProperty decorator is not recommended to use._

Set whether a model property should be flattened or not.

```typespec
Expand Down Expand Up @@ -366,6 +372,8 @@ model Bar {}

#### `@include`

_Deprecated: @include decorator is deprecated. Use `@usage` and `@access` decorator instead._

DEPRECATED: Use `@usage` and `@access` decorator instead.

Whether to include a model in generation for specific languages. By default we generate
Expand Down Expand Up @@ -396,6 +404,8 @@ model ModelToInclude {

#### `@internal`

_Deprecated: @internal decorator is deprecated. Use `@access` decorator instead._

DEPRECATED: Use `@access` decorator instead.

Whether to mark an operation as internal for specific languages,
Expand Down

0 comments on commit 4434dc2

Please sign in to comment.