-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e256e92
commit c9e257e
Showing
5 changed files
with
17 additions
and
2,186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,25 @@ | ||
r""" | ||
This code was generated by | ||
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | ||
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | ||
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | ||
from twilio.rest.preview_iam.PreviewIamBase import PreviewIamBase | ||
|
||
Organization Public API | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
from twilio.rest.preview_iam.v1.authorize import ( | ||
AuthorizeList, | ||
) | ||
from twilio.rest.preview_iam.v1.token import ( | ||
TokenList, | ||
) | ||
from twilio.rest.preview_iam.versionless.organization import ( | ||
OrganizationList, | ||
) | ||
|
||
NOTE: This class is auto generated by OpenAPI Generator. | ||
https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
from typing import Optional | ||
from twilio.base.version import Version | ||
from twilio.base.domain import Domain | ||
from twilio.rest.preview_iam.organizations.account import AccountList | ||
from twilio.rest.preview_iam.organizations.role_assignment import RoleAssignmentList | ||
from twilio.rest.preview_iam.organizations.user import UserList | ||
|
||
|
||
class Organizations(Version): | ||
|
||
def __init__(self, domain: Domain): | ||
""" | ||
Initialize the Organizations version of PreviewIam | ||
:param domain: The Twilio.preview_iam domain | ||
""" | ||
super().__init__(domain, "Organizations") | ||
self._accounts: Optional[AccountList] = None | ||
self._role_assignments: Optional[RoleAssignmentList] = None | ||
self._users: Optional[UserList] = None | ||
|
||
class PreviewIam(PreviewIamBase): | ||
@property | ||
def accounts(self) -> AccountList: | ||
if self._accounts is None: | ||
self._accounts = AccountList(self) | ||
return self._accounts | ||
def organization(self) -> OrganizationList: | ||
return self.versionless.organization | ||
|
||
@property | ||
def role_assignments(self) -> RoleAssignmentList: | ||
if self._role_assignments is None: | ||
self._role_assignments = RoleAssignmentList(self) | ||
return self._role_assignments | ||
def authorize(self) -> AuthorizeList: | ||
return self.v1.authorize | ||
|
||
@property | ||
def users(self) -> UserList: | ||
if self._users is None: | ||
self._users = UserList(self) | ||
return self._users | ||
|
||
def __repr__(self) -> str: | ||
""" | ||
Provide a friendly representation | ||
:returns: Machine friendly representation | ||
""" | ||
return "<Twilio.PreviewIam.Organizations>" | ||
def token(self) -> TokenList: | ||
return self.v1.token |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.