Isilon / isilon_sdk

Official repository for isilon_sdk. All language bindings are available for download under the 'Releases' tab.
MIT License
50 stars 21 forks source link

Incorrect ValueError for Virus report ID #99

Closed wardy3 closed 3 weeks ago

wardy3 commented 1 year ago
id = '1-223-L2lmcy9hdXJpc2kwMi9hdXJhejUvdDEvc21iL0FVMjAwNE5QMDA2Mi9BVTIwMDROUDAwNjJfdm9sMDAxL2dyb3VwZGF0YS9Db3Jwb3JhdGUvcHJ...WZpY2F0aW9uL1JFQ1lDTEVSL1MtMy04LTMwLTQ2MDM0MTAwMzAtODk2NDk2ODgxMS02MjUxMjExMDE3LTE0ODgvQXNlLnVvdQAA10-MTY2NDI2NTE1NAAA'

    @id.setter
    def id(self, id):
        """Sets the id of this ReportsThreatsReport.

        A unique identifier for the report.  # noqa: E501

        :param id: The id of this ReportsThreatsReport.  # noqa: E501
        :type: str
        """
        if id is not None and len(id) > 255:
>           raise ValueError("Invalid value for `id`, length must be less than or equal to `255`")  # noqa: E501
E           ValueError: Invalid value for `id`, length must be less than or equal to `255`

.venv/lib/python3.11/site-packages/isilon_sdk/v9_5_0/models/reports_threats_report.py:128: ValueError

The virus report ID returned by the API is > 255 chars

I guess this might be a bug with the product not the SDK?

thanks

mmanwani07 commented 3 weeks ago

Consider to open it on the OneFS, Sdk provides what Schema reveals to it