2.4.0
- Regenerate code using the open API spec v2.10.0.
- Allow possibility to re-use http session.
New resources:
- Subscription
New models:
- ApplicationFeature
- CapabilitiesCreateObject
- CapabilitiesObject
- CapabilitiesUpdateObject
- ChangeEnum
- LifecycleCreateSettingObject
- LifecycleDeactivateSettingObject
- NotificationType
- Org2OrgApplication
- Org2OrgApplicationSettings
- Org2OrgApplicationSettingsApp
- PasswordSettingObject
- ProfileSettingObject
- ProvisioningConnection
- ProvisioningConnectionAuthScheme
- ProvisioningConnectionProfile
- ProvisioningConnectionRequest
- ProvisioningConnectionStatus
- SeedEnum
- Subscription
- SubscriptionStatus
New features:
Reuse http session to improve performance using client as a context manager:
import asyncio
import aiohttp
from okta.client import Client as OktaClient
async def main():
async with OktaClient() as client:
# perform all queries within same session
users, okta_resp, err = await client.list_users()
user, okta_resp, err = await client.get_user(users[0].id)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())