-
Notifications
You must be signed in to change notification settings - Fork 714
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
Showing
23 changed files
with
1,906 additions
and
601 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
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,11 +1,12 @@ | ||
from enum import Enum | ||
|
||
|
||
class AuthType(Enum): | ||
ORGS_TOKEN = 'orgs_stoken' | ||
NO_AUTH = 'noauth' | ||
BASIC = 'basic' | ||
API_KEY = 'api_key' | ||
CLIENT_CREDENTIALS = 'client_credentials' | ||
ORGS_TOKEN = "orgs_stoken" | ||
NO_AUTH = "noauth" | ||
BASIC = "basic" | ||
API_KEY = "api_key" | ||
CLIENT_CREDENTIALS = "client_credentials" | ||
|
||
def __str__(self): | ||
return self.value | ||
return self.value |
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
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
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
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
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
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
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
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
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
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
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
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,32 +1,32 @@ | ||
|
||
from warnings import warn | ||
from twilio.rest.preview_iam.PreviewIamBase import PreviewIamBase | ||
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 | ||
from twilio.rest.preview_iam.v1.token import TokenList | ||
from twilio.rest.preview_iam.v1.authorize import AuthorizeList | ||
|
||
from twilio.rest.preview_iam.versionless.organization.account import ( | ||
AccountList, | ||
) | ||
from twilio.rest.preview_iam.versionless.organization.role_assignment import ( | ||
RoleAssignmentList, | ||
) | ||
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, | ||
) | ||
|
||
class PreviewIam(PreviewIamBase): | ||
|
||
@property | ||
def accounts(self) -> AccountList: | ||
return self.organizations.accounts | ||
def organization(self) -> OrganizationList: | ||
return self.versionless.organization | ||
|
||
@property | ||
def role_assignments(self) -> RoleAssignmentList: | ||
return self.organizations.role_assignments | ||
|
||
# @property | ||
# def users(self) -> UserList: | ||
# return self.organizations.users | ||
@property | ||
def authorize(self) -> AuthorizeList: | ||
return self.v1.authorize | ||
|
||
@property | ||
def token(self) -> TokenList: | ||
return self.v1.token | ||
|
||
@property | ||
def authorize(self) -> AuthorizeList: | ||
return self.v1.authorize |
Oops, something went wrong.