Skip to content

Commit

Permalink
chore: add static init file to iam domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Sep 18, 2024
1 parent 74b506e commit 8f92c5e
Showing 1 changed file with 35 additions and 0 deletions.
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

0 comments on commit 8f92c5e

Please sign in to comment.