from typing import List
import sailpoint.v3
import sailpoint.beta
import json
from sailpoint.configuration import Configuration
from pydantic import StrictStr
configuration = Configuration()
results: List[sailpoint.v3.CampaignTemplate] = None
result: sailpoint.v3.CampaignTemplate = None
with sailpoint.v3.ApiClient(configuration) as api_client:
results = sailpoint.v3.CertificationCampaignsApi(api_client).list_campaign_templates() # ERROR
result = results[0]
print(result.model_dump_json(by_alias=True, indent=4))
Output:
name 'Campaign' is not defined
File "/Documents/Projects/Python/python-example/test_CertCampaignTemplates.py", line 14, in <module>
results = sailpoint.v3.CertificationCampaignsApi(api_client).list_campaign_templates()
NameError: name 'Campaign' is not defined
Run:
python3 test_CertCampaignTemplates.py
Program:
Output: