Skip to content
Closed
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.9.3-dev.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDc2ODIyMS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.9.2.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/"
]
}
}
4 changes: 2 additions & 2 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "~0.9.3-dev.1",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDc2ODIyMS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.9.2.tgz",
"fs-extra": "~11.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -97,4 +97,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_first(self, **kwargs: Any) -> _first_models2.FirstClientResult:
"""get_first.

:return: FirstClientResult. The FirstClientResult is compatible with MutableMapping
:rtype: ~client.clientnamespace.models.FirstClientResult
:rtype: ~client.clientnamespace.first.models.FirstClientResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def get_first(self, **kwargs: Any) -> _first_models3.FirstClientResult:
"""get_first.

:return: FirstClientResult. The FirstClientResult is compatible with MutableMapping
:rtype: ~client.clientnamespace.models.FirstClientResult
:rtype: ~client.clientnamespace.first.models.FirstClientResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_second(self, **kwargs: Any) -> _models1.SecondClientResult:
"""get_second.

:return: SecondClientResult. The SecondClientResult is compatible with MutableMapping
:rtype: ~client.clientnamespace.models.SecondClientResult
:rtype: ~client.clientnamespace.second.models.SecondClientResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def get_second(self, **kwargs: Any) -> _models2.SecondClientResult:
"""get_second.

:return: SecondClientResult. The SecondClientResult is compatible with MutableMapping
:rtype: ~client.clientnamespace.models.SecondClientResult
:rtype: ~client.clientnamespace.second.models.SecondClientResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SecondClientResult(_model_base.Model):
"""SecondClientResult.

:ivar type: Required. "second"
:vartype type: str or ~client.clientnamespace.models.SecondClientEnumType
:vartype type: str or ~client.clientnamespace.second.sub.models.SecondClientEnumType
"""

type: Union[str, "_sub_models2.SecondClientEnumType"] = rest_field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ async def default(
"""default.

:param body: Required.
:type body: ~encode.duration.models.DefaultDurationProperty
:type body: ~encode.duration.property.models.DefaultDurationProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: DefaultDurationProperty. The DefaultDurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.DefaultDurationProperty
:rtype: ~encode.duration.property.models.DefaultDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -82,7 +82,7 @@ async def default(
Default value is "application/json".
:paramtype content_type: str
:return: DefaultDurationProperty. The DefaultDurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.DefaultDurationProperty
:rtype: ~encode.duration.property.models.DefaultDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -98,7 +98,7 @@ async def default(
Default value is "application/json".
:paramtype content_type: str
:return: DefaultDurationProperty. The DefaultDurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.DefaultDurationProperty
:rtype: ~encode.duration.property.models.DefaultDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -108,9 +108,9 @@ async def default(
"""default.

:param body: Is one of the following types: DefaultDurationProperty, JSON, IO[bytes] Required.
:type body: ~encode.duration.models.DefaultDurationProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.DefaultDurationProperty or JSON or IO[bytes]
:return: DefaultDurationProperty. The DefaultDurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.DefaultDurationProperty
:rtype: ~encode.duration.property.models.DefaultDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down Expand Up @@ -176,12 +176,12 @@ async def iso8601(
"""iso8601.

:param body: Required.
:type body: ~encode.duration.models.ISO8601DurationProperty
:type body: ~encode.duration.property.models.ISO8601DurationProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: ISO8601DurationProperty. The ISO8601DurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.ISO8601DurationProperty
:rtype: ~encode.duration.property.models.ISO8601DurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -197,7 +197,7 @@ async def iso8601(
Default value is "application/json".
:paramtype content_type: str
:return: ISO8601DurationProperty. The ISO8601DurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.ISO8601DurationProperty
:rtype: ~encode.duration.property.models.ISO8601DurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -213,7 +213,7 @@ async def iso8601(
Default value is "application/json".
:paramtype content_type: str
:return: ISO8601DurationProperty. The ISO8601DurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.ISO8601DurationProperty
:rtype: ~encode.duration.property.models.ISO8601DurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -223,9 +223,9 @@ async def iso8601(
"""iso8601.

:param body: Is one of the following types: ISO8601DurationProperty, JSON, IO[bytes] Required.
:type body: ~encode.duration.models.ISO8601DurationProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.ISO8601DurationProperty or JSON or IO[bytes]
:return: ISO8601DurationProperty. The ISO8601DurationProperty is compatible with MutableMapping
:rtype: ~encode.duration.models.ISO8601DurationProperty
:rtype: ~encode.duration.property.models.ISO8601DurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down Expand Up @@ -291,13 +291,13 @@ async def int32_seconds(
"""int32_seconds.

:param body: Required.
:type body: ~encode.duration.models.Int32SecondsDurationProperty
:type body: ~encode.duration.property.models.Int32SecondsDurationProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: Int32SecondsDurationProperty. The Int32SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Int32SecondsDurationProperty
:rtype: ~encode.duration.property.models.Int32SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -314,7 +314,7 @@ async def int32_seconds(
:paramtype content_type: str
:return: Int32SecondsDurationProperty. The Int32SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Int32SecondsDurationProperty
:rtype: ~encode.duration.property.models.Int32SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -331,7 +331,7 @@ async def int32_seconds(
:paramtype content_type: str
:return: Int32SecondsDurationProperty. The Int32SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Int32SecondsDurationProperty
:rtype: ~encode.duration.property.models.Int32SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -342,10 +342,10 @@ async def int32_seconds(

:param body: Is one of the following types: Int32SecondsDurationProperty, JSON, IO[bytes]
Required.
:type body: ~encode.duration.models.Int32SecondsDurationProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.Int32SecondsDurationProperty or JSON or IO[bytes]
:return: Int32SecondsDurationProperty. The Int32SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Int32SecondsDurationProperty
:rtype: ~encode.duration.property.models.Int32SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down Expand Up @@ -411,13 +411,13 @@ async def float_seconds(
"""float_seconds.

:param body: Required.
:type body: ~encode.duration.models.FloatSecondsDurationProperty
:type body: ~encode.duration.property.models.FloatSecondsDurationProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: FloatSecondsDurationProperty. The FloatSecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -434,7 +434,7 @@ async def float_seconds(
:paramtype content_type: str
:return: FloatSecondsDurationProperty. The FloatSecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -451,7 +451,7 @@ async def float_seconds(
:paramtype content_type: str
:return: FloatSecondsDurationProperty. The FloatSecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -462,10 +462,10 @@ async def float_seconds(

:param body: Is one of the following types: FloatSecondsDurationProperty, JSON, IO[bytes]
Required.
:type body: ~encode.duration.models.FloatSecondsDurationProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.FloatSecondsDurationProperty or JSON or IO[bytes]
:return: FloatSecondsDurationProperty. The FloatSecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down Expand Up @@ -531,13 +531,13 @@ async def float64_seconds(
"""float64_seconds.

:param body: Required.
:type body: ~encode.duration.models.Float64SecondsDurationProperty
:type body: ~encode.duration.property.models.Float64SecondsDurationProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: Float64SecondsDurationProperty. The Float64SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Float64SecondsDurationProperty
:rtype: ~encode.duration.property.models.Float64SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -554,7 +554,7 @@ async def float64_seconds(
:paramtype content_type: str
:return: Float64SecondsDurationProperty. The Float64SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Float64SecondsDurationProperty
:rtype: ~encode.duration.property.models.Float64SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -571,7 +571,7 @@ async def float64_seconds(
:paramtype content_type: str
:return: Float64SecondsDurationProperty. The Float64SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Float64SecondsDurationProperty
:rtype: ~encode.duration.property.models.Float64SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -582,10 +582,11 @@ async def float64_seconds(

:param body: Is one of the following types: Float64SecondsDurationProperty, JSON, IO[bytes]
Required.
:type body: ~encode.duration.models.Float64SecondsDurationProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.Float64SecondsDurationProperty or JSON or
IO[bytes]
:return: Float64SecondsDurationProperty. The Float64SecondsDurationProperty is compatible with
MutableMapping
:rtype: ~encode.duration.models.Float64SecondsDurationProperty
:rtype: ~encode.duration.property.models.Float64SecondsDurationProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down Expand Up @@ -651,13 +652,13 @@ async def float_seconds_array(
"""float_seconds_array.

:param body: Required.
:type body: ~encode.duration.models.FloatSecondsDurationArrayProperty
:type body: ~encode.duration.property.models.FloatSecondsDurationArrayProperty
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: FloatSecondsDurationArrayProperty. The FloatSecondsDurationArrayProperty is compatible
with MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationArrayProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationArrayProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -674,7 +675,7 @@ async def float_seconds_array(
:paramtype content_type: str
:return: FloatSecondsDurationArrayProperty. The FloatSecondsDurationArrayProperty is compatible
with MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationArrayProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationArrayProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -691,7 +692,7 @@ async def float_seconds_array(
:paramtype content_type: str
:return: FloatSecondsDurationArrayProperty. The FloatSecondsDurationArrayProperty is compatible
with MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationArrayProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationArrayProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""

Expand All @@ -702,10 +703,11 @@ async def float_seconds_array(

:param body: Is one of the following types: FloatSecondsDurationArrayProperty, JSON, IO[bytes]
Required.
:type body: ~encode.duration.models.FloatSecondsDurationArrayProperty or JSON or IO[bytes]
:type body: ~encode.duration.property.models.FloatSecondsDurationArrayProperty or JSON or
IO[bytes]
:return: FloatSecondsDurationArrayProperty. The FloatSecondsDurationArrayProperty is compatible
with MutableMapping
:rtype: ~encode.duration.models.FloatSecondsDurationArrayProperty
:rtype: ~encode.duration.property.models.FloatSecondsDurationArrayProperty
:raises ~corehttp.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand Down
Loading
Loading