1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
from warnings import warn
from twilio.rest.trusthub.TrusthubBase import TrusthubBase
from twilio.rest.trusthub.v1.customer_profiles import CustomerProfilesList
from twilio.rest.trusthub.v1.end_user import EndUserList
from twilio.rest.trusthub.v1.end_user_type import EndUserTypeList
from twilio.rest.trusthub.v1.policies import PoliciesList
from twilio.rest.trusthub.v1.supporting_document import SupportingDocumentList
from twilio.rest.trusthub.v1.supporting_document_type import SupportingDocumentTypeList
from twilio.rest.trusthub.v1.trust_products import TrustProductsList
class Trusthub(TrusthubBase):
@property
def customer_profiles(self) -> CustomerProfilesList:
warn(
"customer_profiles is deprecated. Use v1.customer_profiles instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.customer_profiles
@property
def end_users(self) -> EndUserList:
warn(
"end_users is deprecated. Use v1.end_users instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.end_users
@property
def end_user_types(self) -> EndUserTypeList:
warn(
"end_user_types is deprecated. Use v1.end_user_types instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.end_user_types
@property
def policies(self) -> PoliciesList:
warn(
"policies is deprecated. Use v1.policies instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.policies
@property
def supporting_documents(self) -> SupportingDocumentList:
warn(
"supporting_documents is deprecated. Use v1.supporting_documents instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.supporting_documents
@property
def supporting_document_types(self) -> SupportingDocumentTypeList:
warn(
"supporting_document_types is deprecated. Use v1.supporting_document_types instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.supporting_document_types
@property
def trust_products(self) -> TrustProductsList:
warn(
"trust_products is deprecated. Use v1.trust_products instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.trust_products
|