diff --git a/CHANGES.md b/CHANGES.md index 3c5970706..f95edb2e6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,15 @@ twilio-python Changelog Here you can see the full list of changes between each twilio-python release. +[2024-12-13] Version 9.4.1 +-------------------------- +**Library - Fix** +- [PR #827](https://github.com/twilio/twilio-python/pull/827): Fixing init file for preview iam domain. Thanks to [@AsabuHere](https://github.com/AsabuHere)! + +**Library - Chore** +- [PR #826](https://github.com/twilio/twilio-python/pull/826): fix orgs api changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! + + [2024-12-12] Version 9.4.0 -------------------------- **Library - Feature** diff --git a/twilio/rest/__init__.py b/twilio/rest/__init__.py index d727b2467..5838363c5 100644 --- a/twilio/rest/__init__.py +++ b/twilio/rest/__init__.py @@ -97,6 +97,7 @@ def __init__( environment=None, edge=None, user_agent_extensions=None, + credential_provider=None, ): """ Initializes the Twilio Client @@ -122,6 +123,7 @@ def __init__( environment, edge, user_agent_extensions, + credential_provider, ) # Domains diff --git a/twilio/rest/preview_iam/PreviewIamBase.py b/twilio/rest/preview_iam/PreviewIamBase.py index bdf047ecd..22fcbe70b 100644 --- a/twilio/rest/preview_iam/PreviewIamBase.py +++ b/twilio/rest/preview_iam/PreviewIamBase.py @@ -13,7 +13,6 @@ from twilio.base.domain import Domain from twilio.rest import Client -from twilio.rest.preview_iam.organizations import Organizations from twilio.rest.preview_iam.v1 import V1 @@ -26,18 +25,8 @@ def __init__(self, twilio: Client): :returns: Domain for PreviewIam """ super().__init__(twilio, "https://preview-iam.twilio.com") - self._organizations: Optional[Organizations] = None self._v1: Optional[V1] = None - @property - def organizations(self) -> Organizations: - """ - :returns: Versions organizations of PreviewIam - """ - if self._organizations is None: - self._organizations = Organizations(self) - return self._organizations - @property def v1(self) -> V1: """ diff --git a/twilio/rest/preview_iam/__init__.py b/twilio/rest/preview_iam/__init__.py index f183fb839..9a5bf85b2 100644 --- a/twilio/rest/preview_iam/__init__.py +++ b/twilio/rest/preview_iam/__init__.py @@ -11,6 +11,7 @@ ) from twilio.rest.preview_iam.versionless import Versionless + class PreviewIam(PreviewIamBase): @property def organization(self) -> OrganizationList: