sailpoint-oss / python-sdk

MIT License
6 stars 3 forks source link

list_account_activities(): name 'WorkItemState' is not defined #18

Closed scott-fehrman-sp closed 2 months ago

scott-fehrman-sp commented 4 months ago

Run: python3 test_AccoutActivities.py

from typing import List
import sailpoint.v3
import sailpoint.beta
import json
from sailpoint.configuration import Configuration
from pydantic import StrictStr

configuration = Configuration()

with sailpoint.v3.ApiClient(configuration) as api_client:
    results = sailpoint.v3.AccountActivitiesApi(api_client).list_account_activities() # ERROR
    result = results[0]
    print(result.model_dump_json())

output:

name 'WorkItemState' is not defined
  File "/Documents/Projects/Python/python-example/test_AccountActivities.py", line 11, in <module>
    results = sailpoint.v3.AccountActivitiesApi(api_client).list_account_activities()
NameError: name 'WorkItemState' is not defined
tyler-mairose-sp commented 2 months ago

@scott-fehrman-sp This is fixed in https://github.com/sailpoint-oss/python-sdk/commit/c4099b391918aee237a8af6db793241fffee5ba0 and will be a part of the next release!