Skip to content

[python][bug] types.py does not contain MapsResourceTagsUpdate but it was inferred in operation file #11149

Description

@msyyc

For https://github.com/Azure/azure-rest-api-specs/tree/9ee5902c9557817bc4a859ebc13f757515aac5d7/specification/azuredependencymap/DependencyMap.Management, the generated sdk code is:

    def _update_initial(
        self,
        resource_group_name: str,
        map_name: str,
        properties: Union[_models.MapsResourceTagsUpdate, _types.MapsResourceTagsUpdate, IO[bytes]],
        **kwargs: Any
    ) -> Iterator[bytes]:
        error_map: MutableMapping = {
            401: ClientAuthenticationError,
            404: ResourceNotFoundError,
            409: ResourceExistsError,
            304: ResourceNotModifiedError,
        }

But the MapsResourceTagsUpdate is not generated in types.py.

Reproduce

Use latest python emitter to generate sdk code with command tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/9ee5902c9557817bc4a859ebc13f757515aac5d7/specification/azuredependencymap/DependencyMap.Management/tspconfig.yaml in azure-sdk-for-python repo.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingemitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions