-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[typespec-python] Regenerate tests from microsoft/typespec PR #10439 (DO NOT MERGE) #47346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
msyyc
wants to merge
1
commit into
typespec-python-generated-tests
Choose a base branch
from
regen/typespec-python-pr-10439
base: typespec-python-generated-tests
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...e-sdk-tools/emitter/generated/azure/authentication-api-key/authentication/apikey/types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) Python Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing_extensions import Required, TypedDict | ||
|
|
||
|
|
||
| class InvalidAuth(TypedDict, total=False): | ||
| """InvalidAuth. | ||
|
|
||
| :ivar error: Required. | ||
| :vartype error: str | ||
| """ | ||
|
|
||
| error: Required[str] | ||
| """Required.""" | ||
20 changes: 20 additions & 0 deletions
20
...ls/emitter/generated/azure/authentication-http-custom/authentication/http/custom/types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) Python Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing_extensions import Required, TypedDict | ||
|
|
||
|
|
||
| class InvalidAuth(TypedDict, total=False): | ||
| """InvalidAuth. | ||
|
|
||
| :ivar error: Required. | ||
| :vartype error: str | ||
| """ | ||
|
|
||
| error: Required[str] | ||
| """Required.""" |
20 changes: 20 additions & 0 deletions
20
...re-sdk-tools/emitter/generated/azure/authentication-oauth2/authentication/oauth2/types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) Python Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing_extensions import Required, TypedDict | ||
|
|
||
|
|
||
| class InvalidAuth(TypedDict, total=False): | ||
| """InvalidAuth. | ||
|
|
||
| :ivar error: Required. | ||
| :vartype error: str | ||
| """ | ||
|
|
||
| error: Required[str] | ||
| """Required.""" |
129 changes: 129 additions & 0 deletions
129
...azure/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) Python Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing import Literal, Union | ||
| from typing_extensions import Required, TypedDict | ||
|
|
||
|
|
||
| class BaseModel(TypedDict, total=False): | ||
| """Used in internal operations, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class InnerModel(TypedDict, total=False): | ||
| """Used in internal operations, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class InternalDecoratorModelInInternal(TypedDict, total=False): | ||
| """Used in an internal operation, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class NoDecoratorModelInInternal(TypedDict, total=False): | ||
| """Used in an internal operation, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class NoDecoratorModelInPublic(TypedDict, total=False): | ||
| """Used in a public operation, should be generated and exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class OuterModel(BaseModel): | ||
| """Used in internal operations, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| :ivar inner: Required. | ||
| :vartype inner: ~specs.azure.clientgenerator.core.access.models._models.InnerModel | ||
| """ | ||
|
|
||
| inner: Required["InnerModel"] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class PublicDecoratorModelInInternal(TypedDict, total=False): | ||
| """Used in an internal operation but with public decorator, should be generated and exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class PublicDecoratorModelInPublic(TypedDict, total=False): | ||
| """Used in a public operation, should be generated and exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class RealModel(TypedDict, total=False): | ||
| """Used in internal operations, should be generated but not exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| :ivar kind: Required. Default value is "real". | ||
| :vartype kind: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
| kind: Required[Literal["real"]] | ||
| """Required. Default value is \"real\".""" | ||
|
|
||
|
|
||
| class SharedModel(TypedDict, total=False): | ||
| """Used by both public and internal operation. It should be generated and exported. | ||
|
|
||
| :ivar name: Required. | ||
| :vartype name: str | ||
| """ | ||
|
|
||
| name: Required[str] | ||
| """Required.""" | ||
|
|
||
|
|
||
| AbstractModel = Union[RealModel] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ent-generator-core-alternate-type/specs/azure/clientgenerator/core/alternatetype/types.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # Code generated by Microsoft (R) Python Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from typing_extensions import Required, TypedDict | ||
|
|
||
| import geojson | ||
|
|
||
|
|
||
| class Geometry(TypedDict, total=False): | ||
| """Geometry. | ||
|
|
||
| :ivar type: Required. | ||
| :vartype type: str | ||
| :ivar coordinates: Required. | ||
| :vartype coordinates: list[float] | ||
| """ | ||
|
|
||
| type: Required[str] | ||
| """Required.""" | ||
| coordinates: Required[list[float]] | ||
| """Required.""" | ||
|
|
||
|
|
||
| class ModelWithFeatureProperty(TypedDict, total=False): | ||
| """ModelWithFeatureProperty. | ||
|
|
||
| :ivar feature: Required. | ||
| :vartype feature: ~geojson.Feature | ||
| :ivar additional_property: Required. | ||
| :vartype additional_property: str | ||
| """ | ||
|
|
||
| feature: Required[geojson.Feature] | ||
| """Required.""" | ||
| additionalProperty: Required[str] | ||
| """Required.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new file is not referred by any model/operation.