aws / sagemaker-core

Apache License 2.0
5 stars 3 forks source link

Class Workteam has only one attribute #30

Closed pintaoz-aws closed 3 months ago

pintaoz-aws commented 4 months ago
class Workteam(Base):
    """
    Workteam
     Class representing resource Workteam
    Attributes
    ---------------------
    workteam:A Workteam instance that contains information about the work team.

    """

    workteam: Optional[Workteam] = Unassigned()

The only attribute it has is also Workteam, which will make the definition of this class completely meaningless. The cause is in DescribeWorkteam API, the return value is wrapped in "Workteam", which is different from other Describe APIs. SubscribedWorkteam class has the same issue.

nargokul commented 3 months ago

Fixed as part of https://github.com/aws/sagemaker-core/pull/46

Added the identifer as a class attribute to maintain consistency