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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"cross-spawn@>=7.0.0 <7.0.5": "^7.0.5"
}
}
}
}
60 changes: 30 additions & 30 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@
"generator/**"
],
"peerDependencies": {
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0",
"@typespec/rest": ">=0.80.0 <1.0.0",
"@typespec/versioning": ">=0.80.0 <1.0.0",
"@typespec/openapi": "^1.10.0",
"@typespec/events": ">=0.80.0 <1.0.0",
"@typespec/sse": ">=0.80.0 <1.0.0",
"@typespec/streams": ">=0.80.0 <1.0.0",
"@typespec/xml": ">=0.80.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.66.0 <1.0.0",
"@azure-tools/typespec-azure-rulesets": ">=0.65.1 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.66.1 <1.0.0"
"@typespec/compiler": "1.11.0-dev.3",
"@typespec/http": "1.11.0-dev.1",
"@typespec/rest": "0.81.0-dev.0",
"@typespec/versioning": "0.81.0-dev.0",
"@typespec/openapi": "1.11.0-dev.0",
"@typespec/events": "0.81.0-dev.0",
"@typespec/sse": "0.81.0-dev.0",
"@typespec/streams": "0.81.0-dev.0",
"@typespec/xml": "0.81.0-dev.0",
"@azure-tools/typespec-azure-core": "0.67.0-dev.0",
"@azure-tools/typespec-azure-resource-manager": "0.67.0-dev.0",
"@azure-tools/typespec-autorest": "0.67.0-dev.0",
"@azure-tools/typespec-azure-rulesets": "0.67.0-dev.1",
"@azure-tools/typespec-client-generator-core": "0.67.0-dev.6"
},
"dependencies": {
"js-yaml": "~4.1.0",
Expand All @@ -71,24 +71,24 @@
"fs-extra": "~11.2.0"
},
"devDependencies": {
"@typespec/compiler": "^1.10.0",
"@typespec/http": "^1.10.0",
"@typespec/rest": "~0.80.0",
"@typespec/versioning": "~0.80.0",
"@typespec/openapi": "^1.10.0",
"@typespec/events": "~0.80.0",
"@typespec/sse": "~0.80.0",
"@typespec/streams": "~0.80.0",
"@typespec/compiler": "1.11.0-dev.3",
"@typespec/http": "1.11.0-dev.1",
"@typespec/rest": "0.81.0-dev.0",
"@typespec/versioning": "0.81.0-dev.0",
"@typespec/openapi": "1.11.0-dev.0",
"@typespec/events": "0.81.0-dev.0",
"@typespec/sse": "0.81.0-dev.0",
"@typespec/streams": "0.81.0-dev.0",
"@typespec/tspd": "~0.74.0",
"@typespec/xml": "~0.80.0",
"@azure-tools/typespec-azure-resource-manager": "~0.66.0",
"@azure-tools/typespec-azure-core": "~0.66.0",
"@azure-tools/typespec-azure-rulesets": "~0.65.1",
"@azure-tools/typespec-autorest": "~0.66.0",
"@azure-tools/typespec-client-generator-core": "~0.66.1",
"@azure-tools/azure-http-specs": "0.1.0-alpha.39-dev.2",
"@typespec/xml": "0.81.0-dev.0",
"@azure-tools/typespec-azure-resource-manager": "0.67.0-dev.0",
"@azure-tools/typespec-azure-core": "0.67.0-dev.0",
"@azure-tools/typespec-azure-rulesets": "0.67.0-dev.1",
"@azure-tools/typespec-autorest": "0.67.0-dev.0",
"@azure-tools/typespec-client-generator-core": "0.67.0-dev.6",
"@azure-tools/azure-http-specs": "0.1.0-alpha.39-dev.4",
"@typespec/http-specs": "0.1.0-alpha.35-dev.1",
"@typespec/spector": "0.1.0-alpha.24",
"@typespec/spector": "0.1.0-dev.0",
"@typespec/spec-api": "0.1.0-alpha.14-dev.1",
"@types/js-yaml": "~4.0.5",
"@types/node": "~25.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"CrossLanguagePackageId": "Client.Structure.Service",
"CrossLanguageDefinitionId": {
"client.structure.clientoperationgroup.models.ClientType": "Client.Structure.Service.ClientType",
"client.structure.clientoperationgroup.operations.Group3Operations.two": "Client.Structure.ClientOperationGroup.Group3.two",
"client.structure.clientoperationgroup.aio.operations.Group3Operations.two": "Client.Structure.ClientOperationGroup.Group3.two",
"client.structure.clientoperationgroup.operations.Group3Operations.three": "Client.Structure.ClientOperationGroup.Group3.three",
"client.structure.clientoperationgroup.aio.operations.Group3Operations.three": "Client.Structure.ClientOperationGroup.Group3.three",
"client.structure.clientoperationgroup.operations.Group4Operations.four": "Client.Structure.ClientOperationGroup.Group4.four",
"client.structure.clientoperationgroup.aio.operations.Group4Operations.four": "Client.Structure.ClientOperationGroup.Group4.four",
"client.structure.clientoperationgroup.FirstClient.one": "Client.Structure.ClientOperationGroup.one",
"client.structure.clientoperationgroup.aio.FirstClient.one": "Client.Structure.ClientOperationGroup.one",
"client.structure.clientoperationgroup.FirstClient.two": "Client.Structure.ClientOperationGroup.Group3.two",
"client.structure.clientoperationgroup.aio.FirstClient.two": "Client.Structure.ClientOperationGroup.Group3.two",
"client.structure.clientoperationgroup.FirstClient.three": "Client.Structure.ClientOperationGroup.Group3.three",
"client.structure.clientoperationgroup.aio.FirstClient.three": "Client.Structure.ClientOperationGroup.Group3.three",
"client.structure.clientoperationgroup.FirstClient.four": "Client.Structure.ClientOperationGroup.Group4.four",
"client.structure.clientoperationgroup.aio.FirstClient.four": "Client.Structure.ClientOperationGroup.Group4.four",
"client.structure.clientoperationgroup.operations.Group5Operations.six": "Client.Structure.AnotherClientOperationGroup.Group5.six",
"client.structure.clientoperationgroup.aio.operations.Group5Operations.six": "Client.Structure.AnotherClientOperationGroup.Group5.six",
"client.structure.clientoperationgroup.SecondClient.five": "Client.Structure.AnotherClientOperationGroup.five",
"client.structure.clientoperationgroup.aio.SecondClient.five": "Client.Structure.AnotherClientOperationGroup.five",
"client.structure.clientoperationgroup.SecondClient.six": "Client.Structure.AnotherClientOperationGroup.Group5.six",
"client.structure.clientoperationgroup.aio.SecondClient.six": "Client.Structure.AnotherClientOperationGroup.Group5.six"
"client.structure.clientoperationgroup.aio.SecondClient.five": "Client.Structure.AnotherClientOperationGroup.five"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@

from . import models as _models
from ._configuration import FirstClientConfiguration, SecondClientConfiguration
from ._operations import _FirstClientOperationsMixin, _SecondClientOperationsMixin
from ._utils.serialization import Deserializer, Serializer
from .operations import (
Group3Operations,
Group4Operations,
Group5Operations,
_FirstClientOperationsMixin,
_SecondClientOperationsMixin,
)


class FirstClient(_FirstClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""FirstClient.

:ivar group3: Group3Operations operations
:vartype group3: client.structure.clientoperationgroup.operations.Group3Operations
:ivar group4: Group4Operations operations
:vartype group4: client.structure.clientoperationgroup.operations.Group4Operations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -60,6 +70,8 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group3 = Group3Operations(self._client, self._config, self._serialize, self._deserialize)
self.group4 = Group4Operations(self._client, self._config, self._serialize, self._deserialize)

def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down Expand Up @@ -102,6 +114,8 @@ def __exit__(self, *exc_details: Any) -> None:
class SecondClient(_SecondClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""SecondClient.

:ivar group5: Group5Operations operations
:vartype group5: client.structure.clientoperationgroup.operations.Group5Operations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -139,6 +153,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group5 = Group5Operations(self._client, self._config, self._serialize, self._deserialize)

def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@
from .. import models as _models
from .._utils.serialization import Deserializer, Serializer
from ._configuration import FirstClientConfiguration, SecondClientConfiguration
from ._operations import _FirstClientOperationsMixin, _SecondClientOperationsMixin
from .operations import (
Group3Operations,
Group4Operations,
Group5Operations,
_FirstClientOperationsMixin,
_SecondClientOperationsMixin,
)


class FirstClient(_FirstClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""FirstClient.

:ivar group3: Group3Operations operations
:vartype group3: client.structure.clientoperationgroup.aio.operations.Group3Operations
:ivar group4: Group4Operations operations
:vartype group4: client.structure.clientoperationgroup.aio.operations.Group4Operations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -60,6 +70,8 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group3 = Group3Operations(self._client, self._config, self._serialize, self._deserialize)
self.group4 = Group4Operations(self._client, self._config, self._serialize, self._deserialize)

def send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down Expand Up @@ -104,6 +116,8 @@ async def __aexit__(self, *exc_details: Any) -> None:
class SecondClient(_SecondClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""SecondClient.

:ivar group5: Group5Operations operations
:vartype group5: client.structure.clientoperationgroup.aio.operations.Group5Operations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -141,6 +155,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group5 = Group5Operations(self._client, self._config, self._serialize, self._deserialize)

def send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,3 @@ def test_one(self, first_endpoint):

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy
def test_two(self, first_endpoint):
client = self.create_client(endpoint=first_endpoint)
response = client.two()

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy
def test_three(self, first_endpoint):
client = self.create_client(endpoint=first_endpoint)
response = client.three()

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy
def test_four(self, first_endpoint):
client = self.create_client(endpoint=first_endpoint)
response = client.four()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,3 @@ async def test_one(self, first_endpoint):

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy_async
async def test_two(self, first_endpoint):
client = self.create_async_client(endpoint=first_endpoint)
response = await client.two()

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy_async
async def test_three(self, first_endpoint):
client = self.create_async_client(endpoint=first_endpoint)
response = await client.three()

# please add some check logic here by yourself
# ...

@FirstPreparer()
@recorded_by_proxy_async
async def test_four(self, first_endpoint):
client = self.create_async_client(endpoint=first_endpoint)
response = await client.four()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,3 @@ def test_five(self, second_endpoint):

# please add some check logic here by yourself
# ...

@SecondPreparer()
@recorded_by_proxy
def test_six(self, second_endpoint):
client = self.create_client(endpoint=second_endpoint)
response = client.six()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,3 @@ async def test_five(self, second_endpoint):

# please add some check logic here by yourself
# ...

@SecondPreparer()
@recorded_by_proxy_async
async def test_six(self, second_endpoint):
client = self.create_async_client(endpoint=second_endpoint)
response = await client.six()

# please add some check logic here by yourself
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"CrossLanguagePackageId": "Client.Structure.Service",
"CrossLanguageDefinitionId": {
"client.structure.renamedoperation.models.ClientType": "Client.Structure.Service.ClientType",
"client.structure.renamedoperation.operations.GroupOperations.renamed_two": "Client.Structure.RenamedOperation.Group.renamedTwo",
"client.structure.renamedoperation.aio.operations.GroupOperations.renamed_two": "Client.Structure.RenamedOperation.Group.renamedTwo",
"client.structure.renamedoperation.operations.GroupOperations.renamed_four": "Client.Structure.RenamedOperation.Group.renamedFour",
"client.structure.renamedoperation.aio.operations.GroupOperations.renamed_four": "Client.Structure.RenamedOperation.Group.renamedFour",
"client.structure.renamedoperation.operations.GroupOperations.renamed_six": "Client.Structure.RenamedOperation.Group.renamedSix",
"client.structure.renamedoperation.aio.operations.GroupOperations.renamed_six": "Client.Structure.RenamedOperation.Group.renamedSix",
"client.structure.renamedoperation.RenamedOperationClient.renamed_one": "Client.Structure.RenamedOperation.renamedOne",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_one": "Client.Structure.RenamedOperation.renamedOne",
"client.structure.renamedoperation.RenamedOperationClient.renamed_three": "Client.Structure.RenamedOperation.renamedThree",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_three": "Client.Structure.RenamedOperation.renamedThree",
"client.structure.renamedoperation.RenamedOperationClient.renamed_five": "Client.Structure.RenamedOperation.renamedFive",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_five": "Client.Structure.RenamedOperation.renamedFive",
"client.structure.renamedoperation.RenamedOperationClient.renamed_two": "Client.Structure.RenamedOperation.Group.renamedTwo",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_two": "Client.Structure.RenamedOperation.Group.renamedTwo",
"client.structure.renamedoperation.RenamedOperationClient.renamed_four": "Client.Structure.RenamedOperation.Group.renamedFour",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_four": "Client.Structure.RenamedOperation.Group.renamedFour",
"client.structure.renamedoperation.RenamedOperationClient.renamed_six": "Client.Structure.RenamedOperation.Group.renamedSix",
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_six": "Client.Structure.RenamedOperation.Group.renamedSix"
"client.structure.renamedoperation.aio.RenamedOperationClient.renamed_five": "Client.Structure.RenamedOperation.renamedFive"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@

from . import models as _models
from ._configuration import RenamedOperationClientConfiguration
from ._operations import _RenamedOperationClientOperationsMixin
from ._utils.serialization import Deserializer, Serializer
from .operations import GroupOperations, _RenamedOperationClientOperationsMixin


class RenamedOperationClient(
_RenamedOperationClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""RenamedOperationClient.

:ivar group: GroupOperations operations
:vartype group: client.structure.renamedoperation.operations.GroupOperations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -62,6 +64,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group = GroupOperations(self._client, self._config, self._serialize, self._deserialize)

def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
from .. import models as _models
from .._utils.serialization import Deserializer, Serializer
from ._configuration import RenamedOperationClientConfiguration
from ._operations import _RenamedOperationClientOperationsMixin
from .operations import GroupOperations, _RenamedOperationClientOperationsMixin


class RenamedOperationClient(
_RenamedOperationClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""RenamedOperationClient.

:ivar group: GroupOperations operations
:vartype group: client.structure.renamedoperation.aio.operations.GroupOperations
:param endpoint: Need to be set as '`http://localhost:3000 <http://localhost:3000>`_' in
client. Required.
:type endpoint: str
Expand Down Expand Up @@ -62,6 +64,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
self._serialize = Serializer()
self._deserialize = Deserializer()
self._serialize.client_side_validation = False
self.group = GroupOperations(self._client, self._config, self._serialize, self._deserialize)

def send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Loading