Skip to content

Import error "type object 'RaAttachmentSortItemProperty' has no attribute 'CHANGE_LOG_SLASH_UPDATED_DATE_TIME'" #98

Description

@erikafsan

SDK version: 0.19.0

We get an import error because there is a reference to CHANGE_LOG_SLASH_UPDATED_DATE_TIME, which has been updated to SLASH_CHANGE_LOG_SLASH_UPDATED_DATE_TIME.

>>> import equinix.services.fabricv4
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/__init__.py", line 16, in <module>
    from equinix.services.fabricv4.api.agent_templates_api import AgentTemplatesApi
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api/__init__.py", line 4, in <module>
    from equinix.services.fabricv4.api.agent_templates_api import AgentTemplatesApi
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api/agent_templates_api.py", line 21, in <module>
    from equinix.services.fabricv4.api_client import ApiClient, RequestSerialized
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api_client.py", line 27, in <module>
    import equinix.services.fabricv4.models
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/__init__.py", line 127, in <module>
    from equinix.services.fabricv4.models.cloud_router_route_aggregations_search_base import CloudRouterRouteAggregationsSearchBase
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/cloud_router_route_aggregations_search_base.py", line 21, in <module>
    from equinix.services.fabricv4.models.ra_attachment_sort_item import RaAttachmentSortItem
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/ra_attachment_sort_item.py", line 23, in <module>
    class RaAttachmentSortItem(BaseModel):
  File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/ra_attachment_sort_item.py", line 27, in RaAttachmentSortItem
    var_property: Optional[RaAttachmentSortItemProperty] = Field(default=RaAttachmentSortItemProperty.CHANGE_LOG_SLASH_UPDATED_DATE_TIME, alias="property")
                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'RaAttachmentSortItemProperty' has no attribute 'CHANGE_LOG_SLASH_UPDATED_DATE_TIME'. Did you mean: 'SLASH_CHANGE_LOG_SLASH_UPDATED_DATE_TIME'?
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions