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: removing unavailable references from init files #818

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
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
25 changes: 0 additions & 25 deletions twilio/rest/autopilot/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions twilio/rest/iam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
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 Iam(IamBase):
Expand All @@ -24,12 +23,3 @@ def get_api_keys(self) -> GetApiKeysList:
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
35 changes: 0 additions & 35 deletions twilio/rest/media/__init__.py

This file was deleted.

39 changes: 0 additions & 39 deletions twilio/rest/oauth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,10 @@
from warnings import warn

from twilio.rest.oauth.OauthBase import OauthBase
from twilio.rest.oauth.v1.device_code import DeviceCodeList
from twilio.rest.oauth.v1.oauth import OauthList
from twilio.rest.oauth.v1.openid_discovery import OpenidDiscoveryList
from twilio.rest.oauth.v1.token import TokenList
from twilio.rest.oauth.v1.user_info import UserInfoList


class Oauth(OauthBase):
@property
def oauth(self) -> OauthList:
warn(
"oauth is deprecated. Use v1.oauth instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.oauth

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

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

@property
def token(self) -> TokenList:
Expand All @@ -44,12 +14,3 @@ def token(self) -> TokenList:
stacklevel=2,
)
return self.v1.token

@property
def user_info(self) -> UserInfoList:
warn(
"user_info is deprecated. Use v1.user_info instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.user_info
9 changes: 0 additions & 9 deletions twilio/rest/preview/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from warnings import warn

from twilio.rest.preview.PreviewBase import PreviewBase
from twilio.rest.preview.deployed_devices.fleet import FleetList
from twilio.rest.preview.hosted_numbers.authorization_document import (
AuthorizationDocumentList,
)
Expand All @@ -15,14 +14,6 @@


class Preview(PreviewBase):
@property
def fleets(self) -> FleetList:
warn(
"fleets is deprecated. Use deployed_devices.fleets instead.",
DeprecationWarning,
stacklevel=2,
)
return self.deployed_devices.fleets

@property
def authorization_documents(self) -> AuthorizationDocumentList:
Expand Down
13 changes: 0 additions & 13 deletions twilio/rest/preview_messaging/__init__.py

This file was deleted.

Loading