Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "~0.19.0",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyMjE0My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}

This file was deleted.

8 changes: 4 additions & 4 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@
"@azure-tools/typespec-azure-resource-manager": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.60.2 <1.0.0"
"@azure-tools/typespec-client-generator-core": ">=0.60.3 <1.0.0"
},
"dependencies": {
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "~0.19.0",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyMjE0My9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz",
"fs-extra": "~11.2.0"
},
"devDependencies": {
Expand All @@ -85,7 +85,7 @@
"@azure-tools/typespec-azure-core": "~0.60.0",
"@azure-tools/typespec-azure-rulesets": "~0.60.0",
"@azure-tools/typespec-autorest": "~0.60.0",
"@azure-tools/typespec-client-generator-core": "~0.60.2",
"@azure-tools/typespec-client-generator-core": "~0.60.3",
"@azure-tools/azure-http-specs": "0.1.0-alpha.30-dev.6",
"@typespec/http-specs": "0.1.0-alpha.26",
"@typespec/spector": "0.1.0-alpha.18",
Expand All @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,7 @@ def __init__(self, *args, **kwargs) -> None:
async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel:
"""Expected query parameter: name="Madge"
Expected response body:

.. code-block:: json

{
"name": "Madge",
"inner":
Expand Down Expand Up @@ -617,9 +615,7 @@ async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.Outer
async def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel:
"""Expected query parameter: kind="real"
Expected response body:

.. code-block:: json

{
"name": "Madge",
"kind": "real"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,7 @@ def __init__(self, *args, **kwargs) -> None:
def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel:
"""Expected query parameter: name="Madge"
Expected response body:

.. code-block:: json

{
"name": "Madge",
"inner":
Expand Down Expand Up @@ -786,9 +784,7 @@ def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel:
def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel:
"""Expected query parameter: kind="real"
Expected response body:

.. code-block:: json

{
"name": "Madge",
"kind": "real"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ async def input_to_input_output(
self, body: _models.InputModel, *, content_type: str = "application/json", **kwargs: Any
) -> None:
"""Expected body parameter:

.. code-block:: json

{
"name": "Madge"
}.
Expand All @@ -84,9 +82,7 @@ async def input_to_input_output(
@overload
async def input_to_input_output(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None:
"""Expected body parameter:

.. code-block:: json

{
"name": "Madge"
}.
Expand All @@ -106,9 +102,7 @@ async def input_to_input_output(
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
) -> None:
"""Expected body parameter:

.. code-block:: json

{
"name": "Madge"
}.
Expand All @@ -126,9 +120,7 @@ async def input_to_input_output(
@distributed_trace_async
async def input_to_input_output(self, body: Union[_models.InputModel, JSON, IO[bytes]], **kwargs: Any) -> None:
"""Expected body parameter:

.. code-block:: json

{
"name": "Madge"
}.
Expand Down Expand Up @@ -188,9 +180,7 @@ async def input_to_input_output(self, body: Union[_models.InputModel, JSON, IO[b
@distributed_trace_async
async def output_to_input_output(self, **kwargs: Any) -> _models.OutputModel:
"""Expected response body:

.. code-block:: json

{
"name": "Madge"
}.
Expand Down Expand Up @@ -252,18 +242,12 @@ async def model_in_read_only_property(
self, body: _models.RoundTripModel, *, content_type: str = "application/json", **kwargs: Any
) -> _models.RoundTripModel:
""" "ResultModel" should be usage=output, as it is read-only and does not exist in request body.

Expected body parameter:

.. code-block:: json

{
}

Expected response body:

.. code-block:: json

{
"result": {
"name": "Madge"
Expand All @@ -285,18 +269,12 @@ async def model_in_read_only_property(
self, body: JSON, *, content_type: str = "application/json", **kwargs: Any
) -> _models.RoundTripModel:
""" "ResultModel" should be usage=output, as it is read-only and does not exist in request body.

Expected body parameter:

.. code-block:: json

{
}

Expected response body:

.. code-block:: json

{
"result": {
"name": "Madge"
Expand All @@ -318,18 +296,12 @@ async def model_in_read_only_property(
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
) -> _models.RoundTripModel:
""" "ResultModel" should be usage=output, as it is read-only and does not exist in request body.

Expected body parameter:

.. code-block:: json

{
}

Expected response body:

.. code-block:: json

{
"result": {
"name": "Madge"
Expand All @@ -351,18 +323,12 @@ async def model_in_read_only_property(
self, body: Union[_models.RoundTripModel, JSON, IO[bytes]], **kwargs: Any
) -> _models.RoundTripModel:
""" "ResultModel" should be usage=output, as it is read-only and does not exist in request body.

Expected body parameter:

.. code-block:: json

{
}

Expected response body:

.. code-block:: json

{
"result": {
"name": "Madge"
Expand Down Expand Up @@ -436,11 +402,8 @@ async def model_in_read_only_property(
@distributed_trace_async
async def orphan_model_serializable(self, body: Any, **kwargs: Any) -> None:
"""Serialize the 'OrphanModel' as request body.

Expected body parameter:

.. code-block:: json

{
"name": "name",
"desc": "desc"
Expand Down
Loading
Loading