Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add static init file to iam domain #813

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions twilio/rest/iam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
from warnings import warn

from twilio.rest.iam.IamBase import IamBase
from twilio.rest.iam.v1.api_key import ApiKeyList
from twilio.rest.iam.v1.get_api_keys import GetApiKeysList
from twilio.rest.iam.v1.new_api_key import NewApiKeyList


class Accounts(IamBase):
@property
def api_key(self) -> ApiKeyList:
warn(
"api_key is deprecated. Use v1.api_key instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.api_key

@property
def get_api_keys(self) -> GetApiKeysList:
warn(
"get_api_keys is deprecated. Use v1.get_api_keys instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.get_api_keys

@property
def new_api_key(self) -> NewApiKeyList:
warn(
"new_api_key is deprecated. Use v1.new_api_key instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.new_api_key
Loading