Skip to content
Closed

regen #3243

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
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ 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 @@ -615,7 +617,9 @@ 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,7 +716,9 @@ 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 @@ -784,7 +786,9 @@ 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,7 +64,9 @@ 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 @@ -82,7 +84,9 @@ 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 @@ -102,7 +106,9 @@ 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 @@ -120,7 +126,9 @@ 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 @@ -180,7 +188,9 @@ 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 @@ -242,12 +252,18 @@ 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 @@ -269,12 +285,18 @@ 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 @@ -296,12 +318,18 @@ 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 @@ -323,12 +351,18 @@ 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 @@ -402,8 +436,11 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ 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 @@ -145,7 +147,9 @@ def input_to_input_output(
@overload
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 @@ -163,7 +167,9 @@ def input_to_input_output(self, body: JSON, *, content_type: str = "application/
@overload
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 @@ -183,7 +189,9 @@ def input_to_input_output( # pylint: disable=inconsistent-return-statements
self, body: Union[_models.InputModel, JSON, IO[bytes]], **kwargs: Any
) -> None:
"""Expected body parameter:

.. code-block:: json

{
"name": "Madge"
}.
Expand Down Expand Up @@ -243,7 +251,9 @@ def input_to_input_output( # pylint: disable=inconsistent-return-statements
@distributed_trace
def output_to_input_output(self, **kwargs: Any) -> _models.OutputModel:
"""Expected response body:

.. code-block:: json

{
"name": "Madge"
}.
Expand Down Expand Up @@ -305,12 +315,18 @@ 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 @@ -332,12 +348,18 @@ 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 @@ -359,12 +381,18 @@ 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 @@ -386,12 +414,18 @@ 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 @@ -467,8 +501,11 @@ def orphan_model_serializable( # pylint: disable=inconsistent-return-statements
self, body: Any, **kwargs: Any
) -> None:
"""Serialize the 'OrphanModel' as request body.

Expected body parameter:

.. code-block:: json

{
"name": "name",
"desc": "desc"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi
3. Api version: The initial deployment of the service only supports api version 'v1'. The new
deployment of the service supports api versions 'v1' and 'v2'.
We test the following configurations from this service spec:
* A client generated from the second service spec can call the second deployment of a service
with api version v1
* A client generated from the second service spec can call the second deployment of a service
with api version v2.
* A client generated from the second service spec can call the second deployment of a
service with api version v1
* A client generated from the second service spec can call the second deployment of a
service with api version v2.

:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi
3. Api version: The initial deployment of the service only supports api version 'v1'. The new
deployment of the service supports api versions 'v1' and 'v2'.
We test the following configurations from this service spec:
* A client generated from the second service spec can call the second deployment of a service
with api version v1
* A client generated from the second service spec can call the second deployment of a service
with api version v2.
* A client generated from the second service spec can call the second deployment of a
service with api version v1
* A client generated from the second service spec can call the second deployment of a
service with api version v2.

:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@


class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
"""Scenarios to verify that reserved words can be used in service and generators will handle it
appropriately.
"""Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.

Current list of special words

.. code-block:: txt

and
as
assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@


class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
"""Scenarios to verify that reserved words can be used in service and generators will handle it
appropriately.
"""Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.

Current list of special words

.. code-block:: txt

and
as
assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@


class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword
"""Scenarios to verify that reserved words can be used in service and generators will handle it
appropriately.
"""Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.

Current list of special words

.. code-block:: txt

and
as
assert
Expand Down
Loading
Loading