index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
1.07M
⌀ | signature
stringlengths 2
42.8k
⌀ |
---|---|---|---|---|---|
58,894 |
sib_api_v3_sdk.models.get_category_details
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetCategoryDetails, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,896 |
sib_api_v3_sdk.models.get_child_account_creation_status
|
GetChildAccountCreationStatus
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildAccountCreationStatus(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'child_account_created': 'bool'
}
attribute_map = {
'child_account_created': 'childAccountCreated'
}
def __init__(self, child_account_created=None): # noqa: E501
"""GetChildAccountCreationStatus - a model defined in Swagger""" # noqa: E501
self._child_account_created = None
self.discriminator = None
self.child_account_created = child_account_created
@property
def child_account_created(self):
"""Gets the child_account_created of this GetChildAccountCreationStatus. # noqa: E501
Status of child account creation whether it is successfully created (exists) or not. # noqa: E501
:return: The child_account_created of this GetChildAccountCreationStatus. # noqa: E501
:rtype: bool
"""
return self._child_account_created
@child_account_created.setter
def child_account_created(self, child_account_created):
"""Sets the child_account_created of this GetChildAccountCreationStatus.
Status of child account creation whether it is successfully created (exists) or not. # noqa: E501
:param child_account_created: The child_account_created of this GetChildAccountCreationStatus. # noqa: E501
:type: bool
"""
if child_account_created is None:
raise ValueError("Invalid value for `child_account_created`, must not be `None`") # noqa: E501
self._child_account_created = child_account_created
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildAccountCreationStatus, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildAccountCreationStatus):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(child_account_created=None)
|
58,897 |
sib_api_v3_sdk.models.get_child_account_creation_status
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildAccountCreationStatus):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,898 |
sib_api_v3_sdk.models.get_child_account_creation_status
|
__init__
|
GetChildAccountCreationStatus - a model defined in Swagger
|
def __init__(self, child_account_created=None): # noqa: E501
"""GetChildAccountCreationStatus - a model defined in Swagger""" # noqa: E501
self._child_account_created = None
self.discriminator = None
self.child_account_created = child_account_created
|
(self, child_account_created=None)
|
58,901 |
sib_api_v3_sdk.models.get_child_account_creation_status
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildAccountCreationStatus, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,903 |
sib_api_v3_sdk.models.get_child_domain
|
GetChildDomain
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildDomain(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'domain': 'str',
'active': 'bool'
}
attribute_map = {
'domain': 'domain',
'active': 'active'
}
def __init__(self, domain=None, active=None): # noqa: E501
"""GetChildDomain - a model defined in Swagger""" # noqa: E501
self._domain = None
self._active = None
self.discriminator = None
if domain is not None:
self.domain = domain
if active is not None:
self.active = active
@property
def domain(self):
"""Gets the domain of this GetChildDomain. # noqa: E501
Sender domain # noqa: E501
:return: The domain of this GetChildDomain. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this GetChildDomain.
Sender domain # noqa: E501
:param domain: The domain of this GetChildDomain. # noqa: E501
:type: str
"""
self._domain = domain
@property
def active(self):
"""Gets the active of this GetChildDomain. # noqa: E501
indicates whether a domain is verified or not # noqa: E501
:return: The active of this GetChildDomain. # noqa: E501
:rtype: bool
"""
return self._active
@active.setter
def active(self, active):
"""Sets the active of this GetChildDomain.
indicates whether a domain is verified or not # noqa: E501
:param active: The active of this GetChildDomain. # noqa: E501
:type: bool
"""
self._active = active
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildDomain, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildDomain):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(domain=None, active=None)
|
58,904 |
sib_api_v3_sdk.models.get_child_domain
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildDomain):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,905 |
sib_api_v3_sdk.models.get_child_domain
|
__init__
|
GetChildDomain - a model defined in Swagger
|
def __init__(self, domain=None, active=None): # noqa: E501
"""GetChildDomain - a model defined in Swagger""" # noqa: E501
self._domain = None
self._active = None
self.discriminator = None
if domain is not None:
self.domain = domain
if active is not None:
self.active = active
|
(self, domain=None, active=None)
|
58,908 |
sib_api_v3_sdk.models.get_child_domain
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildDomain, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,910 |
sib_api_v3_sdk.models.get_child_domains
|
GetChildDomains
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildDomains(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""GetChildDomains - a model defined in Swagger""" # noqa: E501
self.discriminator = None
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildDomains, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildDomains):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
()
|
58,911 |
sib_api_v3_sdk.models.get_child_domains
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildDomains):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,912 |
sib_api_v3_sdk.models.get_child_domains
|
__init__
|
GetChildDomains - a model defined in Swagger
|
def __init__(self): # noqa: E501
"""GetChildDomains - a model defined in Swagger""" # noqa: E501
self.discriminator = None
|
(self)
|
58,915 |
sib_api_v3_sdk.models.get_child_domains
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildDomains, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,917 |
sib_api_v3_sdk.models.get_child_info
|
GetChildInfo
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfo(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email': 'str',
'first_name': 'str',
'last_name': 'str',
'company_name': 'str',
'credits': 'GetChildInfoCredits',
'statistics': 'GetChildInfoStatistics',
'password': 'str',
'ips': 'list[str]',
'api_keys': 'GetChildInfoApiKeys'
}
attribute_map = {
'email': 'email',
'first_name': 'firstName',
'last_name': 'lastName',
'company_name': 'companyName',
'credits': 'credits',
'statistics': 'statistics',
'password': 'password',
'ips': 'ips',
'api_keys': 'apiKeys'
}
def __init__(self, email=None, first_name=None, last_name=None, company_name=None, credits=None, statistics=None, password=None, ips=None, api_keys=None): # noqa: E501
"""GetChildInfo - a model defined in Swagger""" # noqa: E501
self._email = None
self._first_name = None
self._last_name = None
self._company_name = None
self._credits = None
self._statistics = None
self._password = None
self._ips = None
self._api_keys = None
self.discriminator = None
self.email = email
self.first_name = first_name
self.last_name = last_name
self.company_name = company_name
if credits is not None:
self.credits = credits
if statistics is not None:
self.statistics = statistics
self.password = password
if ips is not None:
self.ips = ips
if api_keys is not None:
self.api_keys = api_keys
@property
def email(self):
"""Gets the email of this GetChildInfo. # noqa: E501
Login Email # noqa: E501
:return: The email of this GetChildInfo. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetChildInfo.
Login Email # noqa: E501
:param email: The email of this GetChildInfo. # noqa: E501
:type: str
"""
if email is None:
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
self._email = email
@property
def first_name(self):
"""Gets the first_name of this GetChildInfo. # noqa: E501
First Name # noqa: E501
:return: The first_name of this GetChildInfo. # noqa: E501
:rtype: str
"""
return self._first_name
@first_name.setter
def first_name(self, first_name):
"""Sets the first_name of this GetChildInfo.
First Name # noqa: E501
:param first_name: The first_name of this GetChildInfo. # noqa: E501
:type: str
"""
if first_name is None:
raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501
self._first_name = first_name
@property
def last_name(self):
"""Gets the last_name of this GetChildInfo. # noqa: E501
Last Name # noqa: E501
:return: The last_name of this GetChildInfo. # noqa: E501
:rtype: str
"""
return self._last_name
@last_name.setter
def last_name(self, last_name):
"""Sets the last_name of this GetChildInfo.
Last Name # noqa: E501
:param last_name: The last_name of this GetChildInfo. # noqa: E501
:type: str
"""
if last_name is None:
raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501
self._last_name = last_name
@property
def company_name(self):
"""Gets the company_name of this GetChildInfo. # noqa: E501
Name of the company # noqa: E501
:return: The company_name of this GetChildInfo. # noqa: E501
:rtype: str
"""
return self._company_name
@company_name.setter
def company_name(self, company_name):
"""Sets the company_name of this GetChildInfo.
Name of the company # noqa: E501
:param company_name: The company_name of this GetChildInfo. # noqa: E501
:type: str
"""
if company_name is None:
raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501
self._company_name = company_name
@property
def credits(self):
"""Gets the credits of this GetChildInfo. # noqa: E501
:return: The credits of this GetChildInfo. # noqa: E501
:rtype: GetChildInfoCredits
"""
return self._credits
@credits.setter
def credits(self, credits):
"""Sets the credits of this GetChildInfo.
:param credits: The credits of this GetChildInfo. # noqa: E501
:type: GetChildInfoCredits
"""
self._credits = credits
@property
def statistics(self):
"""Gets the statistics of this GetChildInfo. # noqa: E501
:return: The statistics of this GetChildInfo. # noqa: E501
:rtype: GetChildInfoStatistics
"""
return self._statistics
@statistics.setter
def statistics(self, statistics):
"""Sets the statistics of this GetChildInfo.
:param statistics: The statistics of this GetChildInfo. # noqa: E501
:type: GetChildInfoStatistics
"""
self._statistics = statistics
@property
def password(self):
"""Gets the password of this GetChildInfo. # noqa: E501
The encrypted password of child account # noqa: E501
:return: The password of this GetChildInfo. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this GetChildInfo.
The encrypted password of child account # noqa: E501
:param password: The password of this GetChildInfo. # noqa: E501
:type: str
"""
if password is None:
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
self._password = password
@property
def ips(self):
"""Gets the ips of this GetChildInfo. # noqa: E501
IP(s) associated to a child account user # noqa: E501
:return: The ips of this GetChildInfo. # noqa: E501
:rtype: list[str]
"""
return self._ips
@ips.setter
def ips(self, ips):
"""Sets the ips of this GetChildInfo.
IP(s) associated to a child account user # noqa: E501
:param ips: The ips of this GetChildInfo. # noqa: E501
:type: list[str]
"""
self._ips = ips
@property
def api_keys(self):
"""Gets the api_keys of this GetChildInfo. # noqa: E501
:return: The api_keys of this GetChildInfo. # noqa: E501
:rtype: GetChildInfoApiKeys
"""
return self._api_keys
@api_keys.setter
def api_keys(self, api_keys):
"""Sets the api_keys of this GetChildInfo.
:param api_keys: The api_keys of this GetChildInfo. # noqa: E501
:type: GetChildInfoApiKeys
"""
self._api_keys = api_keys
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfo, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfo):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(email=None, first_name=None, last_name=None, company_name=None, credits=None, statistics=None, password=None, ips=None, api_keys=None)
|
58,918 |
sib_api_v3_sdk.models.get_child_info
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfo):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,919 |
sib_api_v3_sdk.models.get_child_info
|
__init__
|
GetChildInfo - a model defined in Swagger
|
def __init__(self, email=None, first_name=None, last_name=None, company_name=None, credits=None, statistics=None, password=None, ips=None, api_keys=None): # noqa: E501
"""GetChildInfo - a model defined in Swagger""" # noqa: E501
self._email = None
self._first_name = None
self._last_name = None
self._company_name = None
self._credits = None
self._statistics = None
self._password = None
self._ips = None
self._api_keys = None
self.discriminator = None
self.email = email
self.first_name = first_name
self.last_name = last_name
self.company_name = company_name
if credits is not None:
self.credits = credits
if statistics is not None:
self.statistics = statistics
self.password = password
if ips is not None:
self.ips = ips
if api_keys is not None:
self.api_keys = api_keys
|
(self, email=None, first_name=None, last_name=None, company_name=None, credits=None, statistics=None, password=None, ips=None, api_keys=None)
|
58,922 |
sib_api_v3_sdk.models.get_child_info
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfo, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,924 |
sib_api_v3_sdk.models.get_child_info_api_keys
|
GetChildInfoApiKeys
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfoApiKeys(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'v2': 'list[GetChildInfoApiKeysV2]',
'v3': 'list[GetChildInfoApiKeysV3]'
}
attribute_map = {
'v2': 'v2',
'v3': 'v3'
}
def __init__(self, v2=None, v3=None): # noqa: E501
"""GetChildInfoApiKeys - a model defined in Swagger""" # noqa: E501
self._v2 = None
self._v3 = None
self.discriminator = None
self.v2 = v2
if v3 is not None:
self.v3 = v3
@property
def v2(self):
"""Gets the v2 of this GetChildInfoApiKeys. # noqa: E501
:return: The v2 of this GetChildInfoApiKeys. # noqa: E501
:rtype: list[GetChildInfoApiKeysV2]
"""
return self._v2
@v2.setter
def v2(self, v2):
"""Sets the v2 of this GetChildInfoApiKeys.
:param v2: The v2 of this GetChildInfoApiKeys. # noqa: E501
:type: list[GetChildInfoApiKeysV2]
"""
if v2 is None:
raise ValueError("Invalid value for `v2`, must not be `None`") # noqa: E501
self._v2 = v2
@property
def v3(self):
"""Gets the v3 of this GetChildInfoApiKeys. # noqa: E501
:return: The v3 of this GetChildInfoApiKeys. # noqa: E501
:rtype: list[GetChildInfoApiKeysV3]
"""
return self._v3
@v3.setter
def v3(self, v3):
"""Sets the v3 of this GetChildInfoApiKeys.
:param v3: The v3 of this GetChildInfoApiKeys. # noqa: E501
:type: list[GetChildInfoApiKeysV3]
"""
self._v3 = v3
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeys, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeys):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(v2=None, v3=None)
|
58,925 |
sib_api_v3_sdk.models.get_child_info_api_keys
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeys):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,926 |
sib_api_v3_sdk.models.get_child_info_api_keys
|
__init__
|
GetChildInfoApiKeys - a model defined in Swagger
|
def __init__(self, v2=None, v3=None): # noqa: E501
"""GetChildInfoApiKeys - a model defined in Swagger""" # noqa: E501
self._v2 = None
self._v3 = None
self.discriminator = None
self.v2 = v2
if v3 is not None:
self.v3 = v3
|
(self, v2=None, v3=None)
|
58,929 |
sib_api_v3_sdk.models.get_child_info_api_keys
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeys, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,931 |
sib_api_v3_sdk.models.get_child_info_api_keys_v2
|
GetChildInfoApiKeysV2
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfoApiKeysV2(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'key': 'str'
}
attribute_map = {
'name': 'name',
'key': 'key'
}
def __init__(self, name=None, key=None): # noqa: E501
"""GetChildInfoApiKeysV2 - a model defined in Swagger""" # noqa: E501
self._name = None
self._key = None
self.discriminator = None
self.name = name
self.key = key
@property
def name(self):
"""Gets the name of this GetChildInfoApiKeysV2. # noqa: E501
Name of the key for version 2 # noqa: E501
:return: The name of this GetChildInfoApiKeysV2. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetChildInfoApiKeysV2.
Name of the key for version 2 # noqa: E501
:param name: The name of this GetChildInfoApiKeysV2. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def key(self):
"""Gets the key of this GetChildInfoApiKeysV2. # noqa: E501
API Key for version 2 # noqa: E501
:return: The key of this GetChildInfoApiKeysV2. # noqa: E501
:rtype: str
"""
return self._key
@key.setter
def key(self, key):
"""Sets the key of this GetChildInfoApiKeysV2.
API Key for version 2 # noqa: E501
:param key: The key of this GetChildInfoApiKeysV2. # noqa: E501
:type: str
"""
if key is None:
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
self._key = key
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeysV2, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeysV2):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, key=None)
|
58,932 |
sib_api_v3_sdk.models.get_child_info_api_keys_v2
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeysV2):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,933 |
sib_api_v3_sdk.models.get_child_info_api_keys_v2
|
__init__
|
GetChildInfoApiKeysV2 - a model defined in Swagger
|
def __init__(self, name=None, key=None): # noqa: E501
"""GetChildInfoApiKeysV2 - a model defined in Swagger""" # noqa: E501
self._name = None
self._key = None
self.discriminator = None
self.name = name
self.key = key
|
(self, name=None, key=None)
|
58,936 |
sib_api_v3_sdk.models.get_child_info_api_keys_v2
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeysV2, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,938 |
sib_api_v3_sdk.models.get_child_info_api_keys_v3
|
GetChildInfoApiKeysV3
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfoApiKeysV3(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'key': 'str'
}
attribute_map = {
'name': 'name',
'key': 'key'
}
def __init__(self, name=None, key=None): # noqa: E501
"""GetChildInfoApiKeysV3 - a model defined in Swagger""" # noqa: E501
self._name = None
self._key = None
self.discriminator = None
self.name = name
self.key = key
@property
def name(self):
"""Gets the name of this GetChildInfoApiKeysV3. # noqa: E501
Name of the key for version 3 # noqa: E501
:return: The name of this GetChildInfoApiKeysV3. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetChildInfoApiKeysV3.
Name of the key for version 3 # noqa: E501
:param name: The name of this GetChildInfoApiKeysV3. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def key(self):
"""Gets the key of this GetChildInfoApiKeysV3. # noqa: E501
API Key for version 3 # noqa: E501
:return: The key of this GetChildInfoApiKeysV3. # noqa: E501
:rtype: str
"""
return self._key
@key.setter
def key(self, key):
"""Sets the key of this GetChildInfoApiKeysV3.
API Key for version 3 # noqa: E501
:param key: The key of this GetChildInfoApiKeysV3. # noqa: E501
:type: str
"""
if key is None:
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
self._key = key
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeysV3, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeysV3):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, key=None)
|
58,939 |
sib_api_v3_sdk.models.get_child_info_api_keys_v3
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoApiKeysV3):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,940 |
sib_api_v3_sdk.models.get_child_info_api_keys_v3
|
__init__
|
GetChildInfoApiKeysV3 - a model defined in Swagger
|
def __init__(self, name=None, key=None): # noqa: E501
"""GetChildInfoApiKeysV3 - a model defined in Swagger""" # noqa: E501
self._name = None
self._key = None
self.discriminator = None
self.name = name
self.key = key
|
(self, name=None, key=None)
|
58,943 |
sib_api_v3_sdk.models.get_child_info_api_keys_v3
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoApiKeysV3, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,945 |
sib_api_v3_sdk.models.get_child_info_credits
|
GetChildInfoCredits
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfoCredits(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email_credits': 'int',
'sms_credits': 'int'
}
attribute_map = {
'email_credits': 'emailCredits',
'sms_credits': 'smsCredits'
}
def __init__(self, email_credits=None, sms_credits=None): # noqa: E501
"""GetChildInfoCredits - a model defined in Swagger""" # noqa: E501
self._email_credits = None
self._sms_credits = None
self.discriminator = None
if email_credits is not None:
self.email_credits = email_credits
if sms_credits is not None:
self.sms_credits = sms_credits
@property
def email_credits(self):
"""Gets the email_credits of this GetChildInfoCredits. # noqa: E501
Email credits available for your child # noqa: E501
:return: The email_credits of this GetChildInfoCredits. # noqa: E501
:rtype: int
"""
return self._email_credits
@email_credits.setter
def email_credits(self, email_credits):
"""Sets the email_credits of this GetChildInfoCredits.
Email credits available for your child # noqa: E501
:param email_credits: The email_credits of this GetChildInfoCredits. # noqa: E501
:type: int
"""
self._email_credits = email_credits
@property
def sms_credits(self):
"""Gets the sms_credits of this GetChildInfoCredits. # noqa: E501
SMS credits available for your child # noqa: E501
:return: The sms_credits of this GetChildInfoCredits. # noqa: E501
:rtype: int
"""
return self._sms_credits
@sms_credits.setter
def sms_credits(self, sms_credits):
"""Sets the sms_credits of this GetChildInfoCredits.
SMS credits available for your child # noqa: E501
:param sms_credits: The sms_credits of this GetChildInfoCredits. # noqa: E501
:type: int
"""
self._sms_credits = sms_credits
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoCredits, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoCredits):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(email_credits=None, sms_credits=None)
|
58,946 |
sib_api_v3_sdk.models.get_child_info_credits
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoCredits):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,947 |
sib_api_v3_sdk.models.get_child_info_credits
|
__init__
|
GetChildInfoCredits - a model defined in Swagger
|
def __init__(self, email_credits=None, sms_credits=None): # noqa: E501
"""GetChildInfoCredits - a model defined in Swagger""" # noqa: E501
self._email_credits = None
self._sms_credits = None
self.discriminator = None
if email_credits is not None:
self.email_credits = email_credits
if sms_credits is not None:
self.sms_credits = sms_credits
|
(self, email_credits=None, sms_credits=None)
|
58,950 |
sib_api_v3_sdk.models.get_child_info_credits
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoCredits, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,952 |
sib_api_v3_sdk.models.get_child_info_statistics
|
GetChildInfoStatistics
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildInfoStatistics(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'previous_month_total_sent': 'int',
'current_month_total_sent': 'int',
'total_sent': 'int'
}
attribute_map = {
'previous_month_total_sent': 'previousMonthTotalSent',
'current_month_total_sent': 'currentMonthTotalSent',
'total_sent': 'totalSent'
}
def __init__(self, previous_month_total_sent=None, current_month_total_sent=None, total_sent=None): # noqa: E501
"""GetChildInfoStatistics - a model defined in Swagger""" # noqa: E501
self._previous_month_total_sent = None
self._current_month_total_sent = None
self._total_sent = None
self.discriminator = None
if previous_month_total_sent is not None:
self.previous_month_total_sent = previous_month_total_sent
if current_month_total_sent is not None:
self.current_month_total_sent = current_month_total_sent
if total_sent is not None:
self.total_sent = total_sent
@property
def previous_month_total_sent(self):
"""Gets the previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501
Overall emails sent for the previous month # noqa: E501
:return: The previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501
:rtype: int
"""
return self._previous_month_total_sent
@previous_month_total_sent.setter
def previous_month_total_sent(self, previous_month_total_sent):
"""Sets the previous_month_total_sent of this GetChildInfoStatistics.
Overall emails sent for the previous month # noqa: E501
:param previous_month_total_sent: The previous_month_total_sent of this GetChildInfoStatistics. # noqa: E501
:type: int
"""
self._previous_month_total_sent = previous_month_total_sent
@property
def current_month_total_sent(self):
"""Gets the current_month_total_sent of this GetChildInfoStatistics. # noqa: E501
Overall emails sent for current month # noqa: E501
:return: The current_month_total_sent of this GetChildInfoStatistics. # noqa: E501
:rtype: int
"""
return self._current_month_total_sent
@current_month_total_sent.setter
def current_month_total_sent(self, current_month_total_sent):
"""Sets the current_month_total_sent of this GetChildInfoStatistics.
Overall emails sent for current month # noqa: E501
:param current_month_total_sent: The current_month_total_sent of this GetChildInfoStatistics. # noqa: E501
:type: int
"""
self._current_month_total_sent = current_month_total_sent
@property
def total_sent(self):
"""Gets the total_sent of this GetChildInfoStatistics. # noqa: E501
Overall emails sent for since the account exists # noqa: E501
:return: The total_sent of this GetChildInfoStatistics. # noqa: E501
:rtype: int
"""
return self._total_sent
@total_sent.setter
def total_sent(self, total_sent):
"""Sets the total_sent of this GetChildInfoStatistics.
Overall emails sent for since the account exists # noqa: E501
:param total_sent: The total_sent of this GetChildInfoStatistics. # noqa: E501
:type: int
"""
self._total_sent = total_sent
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoStatistics, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoStatistics):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(previous_month_total_sent=None, current_month_total_sent=None, total_sent=None)
|
58,953 |
sib_api_v3_sdk.models.get_child_info_statistics
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildInfoStatistics):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,954 |
sib_api_v3_sdk.models.get_child_info_statistics
|
__init__
|
GetChildInfoStatistics - a model defined in Swagger
|
def __init__(self, previous_month_total_sent=None, current_month_total_sent=None, total_sent=None): # noqa: E501
"""GetChildInfoStatistics - a model defined in Swagger""" # noqa: E501
self._previous_month_total_sent = None
self._current_month_total_sent = None
self._total_sent = None
self.discriminator = None
if previous_month_total_sent is not None:
self.previous_month_total_sent = previous_month_total_sent
if current_month_total_sent is not None:
self.current_month_total_sent = current_month_total_sent
if total_sent is not None:
self.total_sent = total_sent
|
(self, previous_month_total_sent=None, current_month_total_sent=None, total_sent=None)
|
58,957 |
sib_api_v3_sdk.models.get_child_info_statistics
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildInfoStatistics, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,959 |
sib_api_v3_sdk.models.get_children_list
|
GetChildrenList
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetChildrenList(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'children': 'list[object]',
'count': 'int'
}
attribute_map = {
'children': 'children',
'count': 'count'
}
def __init__(self, children=None, count=None): # noqa: E501
"""GetChildrenList - a model defined in Swagger""" # noqa: E501
self._children = None
self._count = None
self.discriminator = None
if children is not None:
self.children = children
if count is not None:
self.count = count
@property
def children(self):
"""Gets the children of this GetChildrenList. # noqa: E501
Your children's account information # noqa: E501
:return: The children of this GetChildrenList. # noqa: E501
:rtype: list[object]
"""
return self._children
@children.setter
def children(self, children):
"""Sets the children of this GetChildrenList.
Your children's account information # noqa: E501
:param children: The children of this GetChildrenList. # noqa: E501
:type: list[object]
"""
self._children = children
@property
def count(self):
"""Gets the count of this GetChildrenList. # noqa: E501
Number of child accounts # noqa: E501
:return: The count of this GetChildrenList. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetChildrenList.
Number of child accounts # noqa: E501
:param count: The count of this GetChildrenList. # noqa: E501
:type: int
"""
self._count = count
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildrenList, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildrenList):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(children=None, count=None)
|
58,960 |
sib_api_v3_sdk.models.get_children_list
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetChildrenList):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,961 |
sib_api_v3_sdk.models.get_children_list
|
__init__
|
GetChildrenList - a model defined in Swagger
|
def __init__(self, children=None, count=None): # noqa: E501
"""GetChildrenList - a model defined in Swagger""" # noqa: E501
self._children = None
self._count = None
self.discriminator = None
if children is not None:
self.children = children
if count is not None:
self.count = count
|
(self, children=None, count=None)
|
58,964 |
sib_api_v3_sdk.models.get_children_list
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetChildrenList, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,966 |
sib_api_v3_sdk.models.get_client
|
GetClient
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetClient(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email': 'str',
'first_name': 'str',
'last_name': 'str',
'company_name': 'str'
}
attribute_map = {
'email': 'email',
'first_name': 'firstName',
'last_name': 'lastName',
'company_name': 'companyName'
}
def __init__(self, email=None, first_name=None, last_name=None, company_name=None): # noqa: E501
"""GetClient - a model defined in Swagger""" # noqa: E501
self._email = None
self._first_name = None
self._last_name = None
self._company_name = None
self.discriminator = None
self.email = email
self.first_name = first_name
self.last_name = last_name
self.company_name = company_name
@property
def email(self):
"""Gets the email of this GetClient. # noqa: E501
Login Email # noqa: E501
:return: The email of this GetClient. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetClient.
Login Email # noqa: E501
:param email: The email of this GetClient. # noqa: E501
:type: str
"""
if email is None:
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
self._email = email
@property
def first_name(self):
"""Gets the first_name of this GetClient. # noqa: E501
First Name # noqa: E501
:return: The first_name of this GetClient. # noqa: E501
:rtype: str
"""
return self._first_name
@first_name.setter
def first_name(self, first_name):
"""Sets the first_name of this GetClient.
First Name # noqa: E501
:param first_name: The first_name of this GetClient. # noqa: E501
:type: str
"""
if first_name is None:
raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501
self._first_name = first_name
@property
def last_name(self):
"""Gets the last_name of this GetClient. # noqa: E501
Last Name # noqa: E501
:return: The last_name of this GetClient. # noqa: E501
:rtype: str
"""
return self._last_name
@last_name.setter
def last_name(self, last_name):
"""Sets the last_name of this GetClient.
Last Name # noqa: E501
:param last_name: The last_name of this GetClient. # noqa: E501
:type: str
"""
if last_name is None:
raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501
self._last_name = last_name
@property
def company_name(self):
"""Gets the company_name of this GetClient. # noqa: E501
Name of the company # noqa: E501
:return: The company_name of this GetClient. # noqa: E501
:rtype: str
"""
return self._company_name
@company_name.setter
def company_name(self, company_name):
"""Sets the company_name of this GetClient.
Name of the company # noqa: E501
:param company_name: The company_name of this GetClient. # noqa: E501
:type: str
"""
if company_name is None:
raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501
self._company_name = company_name
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetClient, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetClient):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(email=None, first_name=None, last_name=None, company_name=None)
|
58,967 |
sib_api_v3_sdk.models.get_client
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetClient):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,968 |
sib_api_v3_sdk.models.get_client
|
__init__
|
GetClient - a model defined in Swagger
|
def __init__(self, email=None, first_name=None, last_name=None, company_name=None): # noqa: E501
"""GetClient - a model defined in Swagger""" # noqa: E501
self._email = None
self._first_name = None
self._last_name = None
self._company_name = None
self.discriminator = None
self.email = email
self.first_name = first_name
self.last_name = last_name
self.company_name = company_name
|
(self, email=None, first_name=None, last_name=None, company_name=None)
|
58,971 |
sib_api_v3_sdk.models.get_client
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetClient, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,973 |
sib_api_v3_sdk.models.get_contact_campaign_stats
|
GetContactCampaignStats
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactCampaignStats(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'messages_sent': 'list[GetExtendedContactDetailsStatisticsMessagesSent]',
'hard_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]',
'soft_bounces': 'list[GetExtendedContactDetailsStatisticsMessagesSent]',
'complaints': 'list[GetExtendedContactDetailsStatisticsMessagesSent]',
'unsubscriptions': 'GetContactCampaignStatsUnsubscriptions',
'opened': 'list[GetContactCampaignStatsOpened]',
'clicked': 'list[GetContactCampaignStatsClicked]',
'transac_attributes': 'list[GetContactCampaignStatsTransacAttributes]',
'delivered': 'list[GetExtendedContactDetailsStatisticsMessagesSent]'
}
attribute_map = {
'messages_sent': 'messagesSent',
'hard_bounces': 'hardBounces',
'soft_bounces': 'softBounces',
'complaints': 'complaints',
'unsubscriptions': 'unsubscriptions',
'opened': 'opened',
'clicked': 'clicked',
'transac_attributes': 'transacAttributes',
'delivered': 'delivered'
}
def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None): # noqa: E501
"""GetContactCampaignStats - a model defined in Swagger""" # noqa: E501
self._messages_sent = None
self._hard_bounces = None
self._soft_bounces = None
self._complaints = None
self._unsubscriptions = None
self._opened = None
self._clicked = None
self._transac_attributes = None
self._delivered = None
self.discriminator = None
if messages_sent is not None:
self.messages_sent = messages_sent
if hard_bounces is not None:
self.hard_bounces = hard_bounces
if soft_bounces is not None:
self.soft_bounces = soft_bounces
if complaints is not None:
self.complaints = complaints
if unsubscriptions is not None:
self.unsubscriptions = unsubscriptions
if opened is not None:
self.opened = opened
if clicked is not None:
self.clicked = clicked
if transac_attributes is not None:
self.transac_attributes = transac_attributes
if delivered is not None:
self.delivered = delivered
@property
def messages_sent(self):
"""Gets the messages_sent of this GetContactCampaignStats. # noqa: E501
:return: The messages_sent of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
return self._messages_sent
@messages_sent.setter
def messages_sent(self, messages_sent):
"""Sets the messages_sent of this GetContactCampaignStats.
:param messages_sent: The messages_sent of this GetContactCampaignStats. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
self._messages_sent = messages_sent
@property
def hard_bounces(self):
"""Gets the hard_bounces of this GetContactCampaignStats. # noqa: E501
:return: The hard_bounces of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
return self._hard_bounces
@hard_bounces.setter
def hard_bounces(self, hard_bounces):
"""Sets the hard_bounces of this GetContactCampaignStats.
:param hard_bounces: The hard_bounces of this GetContactCampaignStats. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
self._hard_bounces = hard_bounces
@property
def soft_bounces(self):
"""Gets the soft_bounces of this GetContactCampaignStats. # noqa: E501
:return: The soft_bounces of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
return self._soft_bounces
@soft_bounces.setter
def soft_bounces(self, soft_bounces):
"""Sets the soft_bounces of this GetContactCampaignStats.
:param soft_bounces: The soft_bounces of this GetContactCampaignStats. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
self._soft_bounces = soft_bounces
@property
def complaints(self):
"""Gets the complaints of this GetContactCampaignStats. # noqa: E501
:return: The complaints of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
return self._complaints
@complaints.setter
def complaints(self, complaints):
"""Sets the complaints of this GetContactCampaignStats.
:param complaints: The complaints of this GetContactCampaignStats. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
self._complaints = complaints
@property
def unsubscriptions(self):
"""Gets the unsubscriptions of this GetContactCampaignStats. # noqa: E501
:return: The unsubscriptions of this GetContactCampaignStats. # noqa: E501
:rtype: GetContactCampaignStatsUnsubscriptions
"""
return self._unsubscriptions
@unsubscriptions.setter
def unsubscriptions(self, unsubscriptions):
"""Sets the unsubscriptions of this GetContactCampaignStats.
:param unsubscriptions: The unsubscriptions of this GetContactCampaignStats. # noqa: E501
:type: GetContactCampaignStatsUnsubscriptions
"""
self._unsubscriptions = unsubscriptions
@property
def opened(self):
"""Gets the opened of this GetContactCampaignStats. # noqa: E501
:return: The opened of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetContactCampaignStatsOpened]
"""
return self._opened
@opened.setter
def opened(self, opened):
"""Sets the opened of this GetContactCampaignStats.
:param opened: The opened of this GetContactCampaignStats. # noqa: E501
:type: list[GetContactCampaignStatsOpened]
"""
self._opened = opened
@property
def clicked(self):
"""Gets the clicked of this GetContactCampaignStats. # noqa: E501
:return: The clicked of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetContactCampaignStatsClicked]
"""
return self._clicked
@clicked.setter
def clicked(self, clicked):
"""Sets the clicked of this GetContactCampaignStats.
:param clicked: The clicked of this GetContactCampaignStats. # noqa: E501
:type: list[GetContactCampaignStatsClicked]
"""
self._clicked = clicked
@property
def transac_attributes(self):
"""Gets the transac_attributes of this GetContactCampaignStats. # noqa: E501
:return: The transac_attributes of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetContactCampaignStatsTransacAttributes]
"""
return self._transac_attributes
@transac_attributes.setter
def transac_attributes(self, transac_attributes):
"""Sets the transac_attributes of this GetContactCampaignStats.
:param transac_attributes: The transac_attributes of this GetContactCampaignStats. # noqa: E501
:type: list[GetContactCampaignStatsTransacAttributes]
"""
self._transac_attributes = transac_attributes
@property
def delivered(self):
"""Gets the delivered of this GetContactCampaignStats. # noqa: E501
:return: The delivered of this GetContactCampaignStats. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
return self._delivered
@delivered.setter
def delivered(self, delivered):
"""Sets the delivered of this GetContactCampaignStats.
:param delivered: The delivered of this GetContactCampaignStats. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsMessagesSent]
"""
self._delivered = delivered
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStats, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStats):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None)
|
58,974 |
sib_api_v3_sdk.models.get_contact_campaign_stats
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStats):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,975 |
sib_api_v3_sdk.models.get_contact_campaign_stats
|
__init__
|
GetContactCampaignStats - a model defined in Swagger
|
def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None): # noqa: E501
"""GetContactCampaignStats - a model defined in Swagger""" # noqa: E501
self._messages_sent = None
self._hard_bounces = None
self._soft_bounces = None
self._complaints = None
self._unsubscriptions = None
self._opened = None
self._clicked = None
self._transac_attributes = None
self._delivered = None
self.discriminator = None
if messages_sent is not None:
self.messages_sent = messages_sent
if hard_bounces is not None:
self.hard_bounces = hard_bounces
if soft_bounces is not None:
self.soft_bounces = soft_bounces
if complaints is not None:
self.complaints = complaints
if unsubscriptions is not None:
self.unsubscriptions = unsubscriptions
if opened is not None:
self.opened = opened
if clicked is not None:
self.clicked = clicked
if transac_attributes is not None:
self.transac_attributes = transac_attributes
if delivered is not None:
self.delivered = delivered
|
(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None)
|
58,978 |
sib_api_v3_sdk.models.get_contact_campaign_stats
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStats, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,980 |
sib_api_v3_sdk.models.get_contact_campaign_stats_clicked
|
GetContactCampaignStatsClicked
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactCampaignStatsClicked(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'campaign_id': 'int',
'links': 'list[GetExtendedContactDetailsStatisticsLinks]'
}
attribute_map = {
'campaign_id': 'campaignId',
'links': 'links'
}
def __init__(self, campaign_id=None, links=None): # noqa: E501
"""GetContactCampaignStatsClicked - a model defined in Swagger""" # noqa: E501
self._campaign_id = None
self._links = None
self.discriminator = None
self.campaign_id = campaign_id
self.links = links
@property
def campaign_id(self):
"""Gets the campaign_id of this GetContactCampaignStatsClicked. # noqa: E501
ID of the campaign which generated the event # noqa: E501
:return: The campaign_id of this GetContactCampaignStatsClicked. # noqa: E501
:rtype: int
"""
return self._campaign_id
@campaign_id.setter
def campaign_id(self, campaign_id):
"""Sets the campaign_id of this GetContactCampaignStatsClicked.
ID of the campaign which generated the event # noqa: E501
:param campaign_id: The campaign_id of this GetContactCampaignStatsClicked. # noqa: E501
:type: int
"""
if campaign_id is None:
raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501
self._campaign_id = campaign_id
@property
def links(self):
"""Gets the links of this GetContactCampaignStatsClicked. # noqa: E501
:return: The links of this GetContactCampaignStatsClicked. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsLinks]
"""
return self._links
@links.setter
def links(self, links):
"""Sets the links of this GetContactCampaignStatsClicked.
:param links: The links of this GetContactCampaignStatsClicked. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsLinks]
"""
if links is None:
raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501
self._links = links
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsClicked, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsClicked):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(campaign_id=None, links=None)
|
58,981 |
sib_api_v3_sdk.models.get_contact_campaign_stats_clicked
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsClicked):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,982 |
sib_api_v3_sdk.models.get_contact_campaign_stats_clicked
|
__init__
|
GetContactCampaignStatsClicked - a model defined in Swagger
|
def __init__(self, campaign_id=None, links=None): # noqa: E501
"""GetContactCampaignStatsClicked - a model defined in Swagger""" # noqa: E501
self._campaign_id = None
self._links = None
self.discriminator = None
self.campaign_id = campaign_id
self.links = links
|
(self, campaign_id=None, links=None)
|
58,985 |
sib_api_v3_sdk.models.get_contact_campaign_stats_clicked
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsClicked, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,987 |
sib_api_v3_sdk.models.get_contact_campaign_stats_opened
|
GetContactCampaignStatsOpened
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactCampaignStatsOpened(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'campaign_id': 'int',
'count': 'int',
'event_time': 'str',
'ip': 'str'
}
attribute_map = {
'campaign_id': 'campaignId',
'count': 'count',
'event_time': 'eventTime',
'ip': 'ip'
}
def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # noqa: E501
"""GetContactCampaignStatsOpened - a model defined in Swagger""" # noqa: E501
self._campaign_id = None
self._count = None
self._event_time = None
self._ip = None
self.discriminator = None
self.campaign_id = campaign_id
self.count = count
self.event_time = event_time
self.ip = ip
@property
def campaign_id(self):
"""Gets the campaign_id of this GetContactCampaignStatsOpened. # noqa: E501
ID of the campaign which generated the event # noqa: E501
:return: The campaign_id of this GetContactCampaignStatsOpened. # noqa: E501
:rtype: int
"""
return self._campaign_id
@campaign_id.setter
def campaign_id(self, campaign_id):
"""Sets the campaign_id of this GetContactCampaignStatsOpened.
ID of the campaign which generated the event # noqa: E501
:param campaign_id: The campaign_id of this GetContactCampaignStatsOpened. # noqa: E501
:type: int
"""
if campaign_id is None:
raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501
self._campaign_id = campaign_id
@property
def count(self):
"""Gets the count of this GetContactCampaignStatsOpened. # noqa: E501
Number of openings of the campaign # noqa: E501
:return: The count of this GetContactCampaignStatsOpened. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetContactCampaignStatsOpened.
Number of openings of the campaign # noqa: E501
:param count: The count of this GetContactCampaignStatsOpened. # noqa: E501
:type: int
"""
if count is None:
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
self._count = count
@property
def event_time(self):
"""Gets the event_time of this GetContactCampaignStatsOpened. # noqa: E501
UTC date-time of the event # noqa: E501
:return: The event_time of this GetContactCampaignStatsOpened. # noqa: E501
:rtype: str
"""
return self._event_time
@event_time.setter
def event_time(self, event_time):
"""Sets the event_time of this GetContactCampaignStatsOpened.
UTC date-time of the event # noqa: E501
:param event_time: The event_time of this GetContactCampaignStatsOpened. # noqa: E501
:type: str
"""
if event_time is None:
raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501
self._event_time = event_time
@property
def ip(self):
"""Gets the ip of this GetContactCampaignStatsOpened. # noqa: E501
IP from which the user has opened the campaign # noqa: E501
:return: The ip of this GetContactCampaignStatsOpened. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this GetContactCampaignStatsOpened.
IP from which the user has opened the campaign # noqa: E501
:param ip: The ip of this GetContactCampaignStatsOpened. # noqa: E501
:type: str
"""
if ip is None:
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
self._ip = ip
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsOpened, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsOpened):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(campaign_id=None, count=None, event_time=None, ip=None)
|
58,988 |
sib_api_v3_sdk.models.get_contact_campaign_stats_opened
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsOpened):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,989 |
sib_api_v3_sdk.models.get_contact_campaign_stats_opened
|
__init__
|
GetContactCampaignStatsOpened - a model defined in Swagger
|
def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # noqa: E501
"""GetContactCampaignStatsOpened - a model defined in Swagger""" # noqa: E501
self._campaign_id = None
self._count = None
self._event_time = None
self._ip = None
self.discriminator = None
self.campaign_id = campaign_id
self.count = count
self.event_time = event_time
self.ip = ip
|
(self, campaign_id=None, count=None, event_time=None, ip=None)
|
58,992 |
sib_api_v3_sdk.models.get_contact_campaign_stats_opened
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsOpened, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,994 |
sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes
|
GetContactCampaignStatsTransacAttributes
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactCampaignStatsTransacAttributes(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'order_date': 'date',
'order_price': 'float',
'order_id': 'int'
}
attribute_map = {
'order_date': 'orderDate',
'order_price': 'orderPrice',
'order_id': 'orderId'
}
def __init__(self, order_date=None, order_price=None, order_id=None): # noqa: E501
"""GetContactCampaignStatsTransacAttributes - a model defined in Swagger""" # noqa: E501
self._order_date = None
self._order_price = None
self._order_id = None
self.discriminator = None
self.order_date = order_date
self.order_price = order_price
self.order_id = order_id
@property
def order_date(self):
"""Gets the order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501
Date of the order # noqa: E501
:return: The order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:rtype: date
"""
return self._order_date
@order_date.setter
def order_date(self, order_date):
"""Sets the order_date of this GetContactCampaignStatsTransacAttributes.
Date of the order # noqa: E501
:param order_date: The order_date of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:type: date
"""
if order_date is None:
raise ValueError("Invalid value for `order_date`, must not be `None`") # noqa: E501
self._order_date = order_date
@property
def order_price(self):
"""Gets the order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501
Price of the order # noqa: E501
:return: The order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:rtype: float
"""
return self._order_price
@order_price.setter
def order_price(self, order_price):
"""Sets the order_price of this GetContactCampaignStatsTransacAttributes.
Price of the order # noqa: E501
:param order_price: The order_price of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:type: float
"""
if order_price is None:
raise ValueError("Invalid value for `order_price`, must not be `None`") # noqa: E501
self._order_price = order_price
@property
def order_id(self):
"""Gets the order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501
ID of the order # noqa: E501
:return: The order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:rtype: int
"""
return self._order_id
@order_id.setter
def order_id(self, order_id):
"""Sets the order_id of this GetContactCampaignStatsTransacAttributes.
ID of the order # noqa: E501
:param order_id: The order_id of this GetContactCampaignStatsTransacAttributes. # noqa: E501
:type: int
"""
if order_id is None:
raise ValueError("Invalid value for `order_id`, must not be `None`") # noqa: E501
self._order_id = order_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsTransacAttributes, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsTransacAttributes):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(order_date=None, order_price=None, order_id=None)
|
58,995 |
sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsTransacAttributes):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,996 |
sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes
|
__init__
|
GetContactCampaignStatsTransacAttributes - a model defined in Swagger
|
def __init__(self, order_date=None, order_price=None, order_id=None): # noqa: E501
"""GetContactCampaignStatsTransacAttributes - a model defined in Swagger""" # noqa: E501
self._order_date = None
self._order_price = None
self._order_id = None
self.discriminator = None
self.order_date = order_date
self.order_price = order_price
self.order_id = order_id
|
(self, order_date=None, order_price=None, order_id=None)
|
58,999 |
sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsTransacAttributes, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,001 |
sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions
|
GetContactCampaignStatsUnsubscriptions
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactCampaignStatsUnsubscriptions(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'user_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]',
'admin_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]'
}
attribute_map = {
'user_unsubscription': 'userUnsubscription',
'admin_unsubscription': 'adminUnsubscription'
}
def __init__(self, user_unsubscription=None, admin_unsubscription=None): # noqa: E501
"""GetContactCampaignStatsUnsubscriptions - a model defined in Swagger""" # noqa: E501
self._user_unsubscription = None
self._admin_unsubscription = None
self.discriminator = None
self.user_unsubscription = user_unsubscription
self.admin_unsubscription = admin_unsubscription
@property
def user_unsubscription(self):
"""Gets the user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
Contact has unsubscribed via the unsubscription link in the email # noqa: E501
:return: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]
"""
return self._user_unsubscription
@user_unsubscription.setter
def user_unsubscription(self, user_unsubscription):
"""Sets the user_unsubscription of this GetContactCampaignStatsUnsubscriptions.
Contact has unsubscribed via the unsubscription link in the email # noqa: E501
:param user_unsubscription: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]
"""
if user_unsubscription is None:
raise ValueError("Invalid value for `user_unsubscription`, must not be `None`") # noqa: E501
self._user_unsubscription = user_unsubscription
@property
def admin_unsubscription(self):
"""Gets the admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
Contact has been unsubscribed from the administrator # noqa: E501
:return: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
:rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]
"""
return self._admin_unsubscription
@admin_unsubscription.setter
def admin_unsubscription(self, admin_unsubscription):
"""Sets the admin_unsubscription of this GetContactCampaignStatsUnsubscriptions.
Contact has been unsubscribed from the administrator # noqa: E501
:param admin_unsubscription: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501
:type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]
"""
if admin_unsubscription is None:
raise ValueError("Invalid value for `admin_unsubscription`, must not be `None`") # noqa: E501
self._admin_unsubscription = admin_unsubscription
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsUnsubscriptions, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsUnsubscriptions):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(user_unsubscription=None, admin_unsubscription=None)
|
59,002 |
sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactCampaignStatsUnsubscriptions):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,003 |
sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions
|
__init__
|
GetContactCampaignStatsUnsubscriptions - a model defined in Swagger
|
def __init__(self, user_unsubscription=None, admin_unsubscription=None): # noqa: E501
"""GetContactCampaignStatsUnsubscriptions - a model defined in Swagger""" # noqa: E501
self._user_unsubscription = None
self._admin_unsubscription = None
self.discriminator = None
self.user_unsubscription = user_unsubscription
self.admin_unsubscription = admin_unsubscription
|
(self, user_unsubscription=None, admin_unsubscription=None)
|
59,006 |
sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactCampaignStatsUnsubscriptions, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,008 |
sib_api_v3_sdk.models.get_contact_details
|
GetContactDetails
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContactDetails(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email': 'str',
'id': 'int',
'email_blacklisted': 'bool',
'sms_blacklisted': 'bool',
'created_at': 'str',
'modified_at': 'str',
'list_ids': 'list[int]',
'list_unsubscribed': 'list[int]',
'attributes': 'object'
}
attribute_map = {
'email': 'email',
'id': 'id',
'email_blacklisted': 'emailBlacklisted',
'sms_blacklisted': 'smsBlacklisted',
'created_at': 'createdAt',
'modified_at': 'modifiedAt',
'list_ids': 'listIds',
'list_unsubscribed': 'listUnsubscribed',
'attributes': 'attributes'
}
def __init__(self, email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None): # noqa: E501
"""GetContactDetails - a model defined in Swagger""" # noqa: E501
self._email = None
self._id = None
self._email_blacklisted = None
self._sms_blacklisted = None
self._created_at = None
self._modified_at = None
self._list_ids = None
self._list_unsubscribed = None
self._attributes = None
self.discriminator = None
self.email = email
self.id = id
self.email_blacklisted = email_blacklisted
self.sms_blacklisted = sms_blacklisted
self.created_at = created_at
self.modified_at = modified_at
self.list_ids = list_ids
if list_unsubscribed is not None:
self.list_unsubscribed = list_unsubscribed
self.attributes = attributes
@property
def email(self):
"""Gets the email of this GetContactDetails. # noqa: E501
Email address of the contact for which you requested the details # noqa: E501
:return: The email of this GetContactDetails. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetContactDetails.
Email address of the contact for which you requested the details # noqa: E501
:param email: The email of this GetContactDetails. # noqa: E501
:type: str
"""
if email is None:
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
self._email = email
@property
def id(self):
"""Gets the id of this GetContactDetails. # noqa: E501
ID of the contact for which you requested the details # noqa: E501
:return: The id of this GetContactDetails. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetContactDetails.
ID of the contact for which you requested the details # noqa: E501
:param id: The id of this GetContactDetails. # noqa: E501
:type: int
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def email_blacklisted(self):
"""Gets the email_blacklisted of this GetContactDetails. # noqa: E501
Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) # noqa: E501
:return: The email_blacklisted of this GetContactDetails. # noqa: E501
:rtype: bool
"""
return self._email_blacklisted
@email_blacklisted.setter
def email_blacklisted(self, email_blacklisted):
"""Sets the email_blacklisted of this GetContactDetails.
Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) # noqa: E501
:param email_blacklisted: The email_blacklisted of this GetContactDetails. # noqa: E501
:type: bool
"""
if email_blacklisted is None:
raise ValueError("Invalid value for `email_blacklisted`, must not be `None`") # noqa: E501
self._email_blacklisted = email_blacklisted
@property
def sms_blacklisted(self):
"""Gets the sms_blacklisted of this GetContactDetails. # noqa: E501
Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) # noqa: E501
:return: The sms_blacklisted of this GetContactDetails. # noqa: E501
:rtype: bool
"""
return self._sms_blacklisted
@sms_blacklisted.setter
def sms_blacklisted(self, sms_blacklisted):
"""Sets the sms_blacklisted of this GetContactDetails.
Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) # noqa: E501
:param sms_blacklisted: The sms_blacklisted of this GetContactDetails. # noqa: E501
:type: bool
"""
if sms_blacklisted is None:
raise ValueError("Invalid value for `sms_blacklisted`, must not be `None`") # noqa: E501
self._sms_blacklisted = sms_blacklisted
@property
def created_at(self):
"""Gets the created_at of this GetContactDetails. # noqa: E501
Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetContactDetails. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetContactDetails.
Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetContactDetails. # noqa: E501
:type: str
"""
if created_at is None:
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
self._created_at = created_at
@property
def modified_at(self):
"""Gets the modified_at of this GetContactDetails. # noqa: E501
Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetContactDetails. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetContactDetails.
Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetContactDetails. # noqa: E501
:type: str
"""
if modified_at is None:
raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501
self._modified_at = modified_at
@property
def list_ids(self):
"""Gets the list_ids of this GetContactDetails. # noqa: E501
:return: The list_ids of this GetContactDetails. # noqa: E501
:rtype: list[int]
"""
return self._list_ids
@list_ids.setter
def list_ids(self, list_ids):
"""Sets the list_ids of this GetContactDetails.
:param list_ids: The list_ids of this GetContactDetails. # noqa: E501
:type: list[int]
"""
if list_ids is None:
raise ValueError("Invalid value for `list_ids`, must not be `None`") # noqa: E501
self._list_ids = list_ids
@property
def list_unsubscribed(self):
"""Gets the list_unsubscribed of this GetContactDetails. # noqa: E501
:return: The list_unsubscribed of this GetContactDetails. # noqa: E501
:rtype: list[int]
"""
return self._list_unsubscribed
@list_unsubscribed.setter
def list_unsubscribed(self, list_unsubscribed):
"""Sets the list_unsubscribed of this GetContactDetails.
:param list_unsubscribed: The list_unsubscribed of this GetContactDetails. # noqa: E501
:type: list[int]
"""
self._list_unsubscribed = list_unsubscribed
@property
def attributes(self):
"""Gets the attributes of this GetContactDetails. # noqa: E501
Set of attributes of the contact # noqa: E501
:return: The attributes of this GetContactDetails. # noqa: E501
:rtype: object
"""
return self._attributes
@attributes.setter
def attributes(self, attributes):
"""Sets the attributes of this GetContactDetails.
Set of attributes of the contact # noqa: E501
:param attributes: The attributes of this GetContactDetails. # noqa: E501
:type: object
"""
if attributes is None:
raise ValueError("Invalid value for `attributes`, must not be `None`") # noqa: E501
self._attributes = attributes
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactDetails, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactDetails):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None)
|
59,009 |
sib_api_v3_sdk.models.get_contact_details
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContactDetails):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,010 |
sib_api_v3_sdk.models.get_contact_details
|
__init__
|
GetContactDetails - a model defined in Swagger
|
def __init__(self, email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None): # noqa: E501
"""GetContactDetails - a model defined in Swagger""" # noqa: E501
self._email = None
self._id = None
self._email_blacklisted = None
self._sms_blacklisted = None
self._created_at = None
self._modified_at = None
self._list_ids = None
self._list_unsubscribed = None
self._attributes = None
self.discriminator = None
self.email = email
self.id = id
self.email_blacklisted = email_blacklisted
self.sms_blacklisted = sms_blacklisted
self.created_at = created_at
self.modified_at = modified_at
self.list_ids = list_ids
if list_unsubscribed is not None:
self.list_unsubscribed = list_unsubscribed
self.attributes = attributes
|
(self, email=None, id=None, email_blacklisted=None, sms_blacklisted=None, created_at=None, modified_at=None, list_ids=None, list_unsubscribed=None, attributes=None)
|
59,013 |
sib_api_v3_sdk.models.get_contact_details
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContactDetails, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,015 |
sib_api_v3_sdk.models.get_contacts
|
GetContacts
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetContacts(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'contacts': 'list[object]',
'count': 'int'
}
attribute_map = {
'contacts': 'contacts',
'count': 'count'
}
def __init__(self, contacts=None, count=None): # noqa: E501
"""GetContacts - a model defined in Swagger""" # noqa: E501
self._contacts = None
self._count = None
self.discriminator = None
self.contacts = contacts
self.count = count
@property
def contacts(self):
"""Gets the contacts of this GetContacts. # noqa: E501
:return: The contacts of this GetContacts. # noqa: E501
:rtype: list[object]
"""
return self._contacts
@contacts.setter
def contacts(self, contacts):
"""Sets the contacts of this GetContacts.
:param contacts: The contacts of this GetContacts. # noqa: E501
:type: list[object]
"""
if contacts is None:
raise ValueError("Invalid value for `contacts`, must not be `None`") # noqa: E501
self._contacts = contacts
@property
def count(self):
"""Gets the count of this GetContacts. # noqa: E501
Number of contacts # noqa: E501
:return: The count of this GetContacts. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetContacts.
Number of contacts # noqa: E501
:param count: The count of this GetContacts. # noqa: E501
:type: int
"""
if count is None:
raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501
self._count = count
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContacts, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContacts):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(contacts=None, count=None)
|
59,016 |
sib_api_v3_sdk.models.get_contacts
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetContacts):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,017 |
sib_api_v3_sdk.models.get_contacts
|
__init__
|
GetContacts - a model defined in Swagger
|
def __init__(self, contacts=None, count=None): # noqa: E501
"""GetContacts - a model defined in Swagger""" # noqa: E501
self._contacts = None
self._count = None
self.discriminator = None
self.contacts = contacts
self.count = count
|
(self, contacts=None, count=None)
|
59,020 |
sib_api_v3_sdk.models.get_contacts
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetContacts, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,022 |
sib_api_v3_sdk.models.get_device_browser_stats
|
GetDeviceBrowserStats
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetDeviceBrowserStats(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'clickers': 'int',
'unique_clicks': 'int',
'viewed': 'int',
'unique_views': 'int'
}
attribute_map = {
'clickers': 'clickers',
'unique_clicks': 'uniqueClicks',
'viewed': 'viewed',
'unique_views': 'uniqueViews'
}
def __init__(self, clickers=None, unique_clicks=None, viewed=None, unique_views=None): # noqa: E501
"""GetDeviceBrowserStats - a model defined in Swagger""" # noqa: E501
self._clickers = None
self._unique_clicks = None
self._viewed = None
self._unique_views = None
self.discriminator = None
self.clickers = clickers
self.unique_clicks = unique_clicks
self.viewed = viewed
self.unique_views = unique_views
@property
def clickers(self):
"""Gets the clickers of this GetDeviceBrowserStats. # noqa: E501
Number of total clicks for the campaign using the particular browser # noqa: E501
:return: The clickers of this GetDeviceBrowserStats. # noqa: E501
:rtype: int
"""
return self._clickers
@clickers.setter
def clickers(self, clickers):
"""Sets the clickers of this GetDeviceBrowserStats.
Number of total clicks for the campaign using the particular browser # noqa: E501
:param clickers: The clickers of this GetDeviceBrowserStats. # noqa: E501
:type: int
"""
if clickers is None:
raise ValueError("Invalid value for `clickers`, must not be `None`") # noqa: E501
self._clickers = clickers
@property
def unique_clicks(self):
"""Gets the unique_clicks of this GetDeviceBrowserStats. # noqa: E501
Number of unique clicks for the campaign using the particular browser # noqa: E501
:return: The unique_clicks of this GetDeviceBrowserStats. # noqa: E501
:rtype: int
"""
return self._unique_clicks
@unique_clicks.setter
def unique_clicks(self, unique_clicks):
"""Sets the unique_clicks of this GetDeviceBrowserStats.
Number of unique clicks for the campaign using the particular browser # noqa: E501
:param unique_clicks: The unique_clicks of this GetDeviceBrowserStats. # noqa: E501
:type: int
"""
if unique_clicks is None:
raise ValueError("Invalid value for `unique_clicks`, must not be `None`") # noqa: E501
self._unique_clicks = unique_clicks
@property
def viewed(self):
"""Gets the viewed of this GetDeviceBrowserStats. # noqa: E501
Number of openings for the campaign using the particular browser # noqa: E501
:return: The viewed of this GetDeviceBrowserStats. # noqa: E501
:rtype: int
"""
return self._viewed
@viewed.setter
def viewed(self, viewed):
"""Sets the viewed of this GetDeviceBrowserStats.
Number of openings for the campaign using the particular browser # noqa: E501
:param viewed: The viewed of this GetDeviceBrowserStats. # noqa: E501
:type: int
"""
if viewed is None:
raise ValueError("Invalid value for `viewed`, must not be `None`") # noqa: E501
self._viewed = viewed
@property
def unique_views(self):
"""Gets the unique_views of this GetDeviceBrowserStats. # noqa: E501
Number of unique openings for the campaign using the particular browser # noqa: E501
:return: The unique_views of this GetDeviceBrowserStats. # noqa: E501
:rtype: int
"""
return self._unique_views
@unique_views.setter
def unique_views(self, unique_views):
"""Sets the unique_views of this GetDeviceBrowserStats.
Number of unique openings for the campaign using the particular browser # noqa: E501
:param unique_views: The unique_views of this GetDeviceBrowserStats. # noqa: E501
:type: int
"""
if unique_views is None:
raise ValueError("Invalid value for `unique_views`, must not be `None`") # noqa: E501
self._unique_views = unique_views
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetDeviceBrowserStats, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetDeviceBrowserStats):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(clickers=None, unique_clicks=None, viewed=None, unique_views=None)
|
59,023 |
sib_api_v3_sdk.models.get_device_browser_stats
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetDeviceBrowserStats):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,024 |
sib_api_v3_sdk.models.get_device_browser_stats
|
__init__
|
GetDeviceBrowserStats - a model defined in Swagger
|
def __init__(self, clickers=None, unique_clicks=None, viewed=None, unique_views=None): # noqa: E501
"""GetDeviceBrowserStats - a model defined in Swagger""" # noqa: E501
self._clickers = None
self._unique_clicks = None
self._viewed = None
self._unique_views = None
self.discriminator = None
self.clickers = clickers
self.unique_clicks = unique_clicks
self.viewed = viewed
self.unique_views = unique_views
|
(self, clickers=None, unique_clicks=None, viewed=None, unique_views=None)
|
59,027 |
sib_api_v3_sdk.models.get_device_browser_stats
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetDeviceBrowserStats, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,029 |
sib_api_v3_sdk.models.get_email_campaign
|
GetEmailCampaign
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetEmailCampaign(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'int',
'name': 'str',
'subject': 'str',
'type': 'str',
'status': 'str',
'scheduled_at': 'str',
'ab_testing': 'bool',
'subject_a': 'str',
'subject_b': 'str',
'split_rule': 'int',
'winner_criteria': 'str',
'winner_delay': 'int',
'send_at_best_time': 'bool',
'test_sent': 'bool',
'header': 'str',
'footer': 'str',
'sender': 'GetExtendedCampaignOverviewSender',
'reply_to': 'str',
'to_field': 'str',
'html_content': 'str',
'share_link': 'str',
'tag': 'str',
'created_at': 'str',
'modified_at': 'str',
'inline_image_activation': 'bool',
'mirror_active': 'bool',
'recurring': 'bool',
'sent_date': 'str',
'return_bounce': 'int',
'recipients': 'object',
'statistics': 'object'
}
attribute_map = {
'id': 'id',
'name': 'name',
'subject': 'subject',
'type': 'type',
'status': 'status',
'scheduled_at': 'scheduledAt',
'ab_testing': 'abTesting',
'subject_a': 'subjectA',
'subject_b': 'subjectB',
'split_rule': 'splitRule',
'winner_criteria': 'winnerCriteria',
'winner_delay': 'winnerDelay',
'send_at_best_time': 'sendAtBestTime',
'test_sent': 'testSent',
'header': 'header',
'footer': 'footer',
'sender': 'sender',
'reply_to': 'replyTo',
'to_field': 'toField',
'html_content': 'htmlContent',
'share_link': 'shareLink',
'tag': 'tag',
'created_at': 'createdAt',
'modified_at': 'modifiedAt',
'inline_image_activation': 'inlineImageActivation',
'mirror_active': 'mirrorActive',
'recurring': 'recurring',
'sent_date': 'sentDate',
'return_bounce': 'returnBounce',
'recipients': 'recipients',
'statistics': 'statistics'
}
def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None, recipients=None, statistics=None): # noqa: E501
"""GetEmailCampaign - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._subject = None
self._type = None
self._status = None
self._scheduled_at = None
self._ab_testing = None
self._subject_a = None
self._subject_b = None
self._split_rule = None
self._winner_criteria = None
self._winner_delay = None
self._send_at_best_time = None
self._test_sent = None
self._header = None
self._footer = None
self._sender = None
self._reply_to = None
self._to_field = None
self._html_content = None
self._share_link = None
self._tag = None
self._created_at = None
self._modified_at = None
self._inline_image_activation = None
self._mirror_active = None
self._recurring = None
self._sent_date = None
self._return_bounce = None
self._recipients = None
self._statistics = None
self.discriminator = None
self.id = id
self.name = name
if subject is not None:
self.subject = subject
self.type = type
self.status = status
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if ab_testing is not None:
self.ab_testing = ab_testing
if subject_a is not None:
self.subject_a = subject_a
if subject_b is not None:
self.subject_b = subject_b
if split_rule is not None:
self.split_rule = split_rule
if winner_criteria is not None:
self.winner_criteria = winner_criteria
if winner_delay is not None:
self.winner_delay = winner_delay
if send_at_best_time is not None:
self.send_at_best_time = send_at_best_time
self.test_sent = test_sent
self.header = header
self.footer = footer
self.sender = sender
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
self.html_content = html_content
if share_link is not None:
self.share_link = share_link
if tag is not None:
self.tag = tag
self.created_at = created_at
self.modified_at = modified_at
if inline_image_activation is not None:
self.inline_image_activation = inline_image_activation
if mirror_active is not None:
self.mirror_active = mirror_active
if recurring is not None:
self.recurring = recurring
if sent_date is not None:
self.sent_date = sent_date
if return_bounce is not None:
self.return_bounce = return_bounce
self.recipients = recipients
self.statistics = statistics
@property
def id(self):
"""Gets the id of this GetEmailCampaign. # noqa: E501
ID of the campaign # noqa: E501
:return: The id of this GetEmailCampaign. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetEmailCampaign.
ID of the campaign # noqa: E501
:param id: The id of this GetEmailCampaign. # noqa: E501
:type: int
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this GetEmailCampaign. # noqa: E501
Name of the campaign # noqa: E501
:return: The name of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetEmailCampaign.
Name of the campaign # noqa: E501
:param name: The name of this GetEmailCampaign. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def subject(self):
"""Gets the subject of this GetEmailCampaign. # noqa: E501
Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501
:return: The subject of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this GetEmailCampaign.
Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501
:param subject: The subject of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._subject = subject
@property
def type(self):
"""Gets the type of this GetEmailCampaign. # noqa: E501
Type of campaign # noqa: E501
:return: The type of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this GetEmailCampaign.
Type of campaign # noqa: E501
:param type: The type of this GetEmailCampaign. # noqa: E501
:type: str
"""
if type is None:
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
allowed_values = ["classic", "trigger"] # noqa: E501
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
.format(type, allowed_values)
)
self._type = type
@property
def status(self):
"""Gets the status of this GetEmailCampaign. # noqa: E501
Status of the campaign # noqa: E501
:return: The status of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetEmailCampaign.
Status of the campaign # noqa: E501
:param status: The status of this GetEmailCampaign. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["draft", "sent", "archive", "queued", "suspended", "in_process"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
.format(status, allowed_values)
)
self._status = status
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetEmailCampaign. # noqa: E501
UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The scheduled_at of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetEmailCampaign.
UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param scheduled_at: The scheduled_at of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._scheduled_at = scheduled_at
@property
def ab_testing(self):
"""Gets the ab_testing of this GetEmailCampaign. # noqa: E501
Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501
:return: The ab_testing of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._ab_testing
@ab_testing.setter
def ab_testing(self, ab_testing):
"""Sets the ab_testing of this GetEmailCampaign.
Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501
:param ab_testing: The ab_testing of this GetEmailCampaign. # noqa: E501
:type: bool
"""
self._ab_testing = ab_testing
@property
def subject_a(self):
"""Gets the subject_a of this GetEmailCampaign. # noqa: E501
Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The subject_a of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._subject_a
@subject_a.setter
def subject_a(self, subject_a):
"""Sets the subject_a of this GetEmailCampaign.
Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param subject_a: The subject_a of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._subject_a = subject_a
@property
def subject_b(self):
"""Gets the subject_b of this GetEmailCampaign. # noqa: E501
Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The subject_b of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._subject_b
@subject_b.setter
def subject_b(self, subject_b):
"""Sets the subject_b of this GetEmailCampaign.
Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param subject_b: The subject_b of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._subject_b = subject_b
@property
def split_rule(self):
"""Gets the split_rule of this GetEmailCampaign. # noqa: E501
The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The split_rule of this GetEmailCampaign. # noqa: E501
:rtype: int
"""
return self._split_rule
@split_rule.setter
def split_rule(self, split_rule):
"""Sets the split_rule of this GetEmailCampaign.
The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param split_rule: The split_rule of this GetEmailCampaign. # noqa: E501
:type: int
"""
self._split_rule = split_rule
@property
def winner_criteria(self):
"""Gets the winner_criteria of this GetEmailCampaign. # noqa: E501
Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The winner_criteria of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._winner_criteria
@winner_criteria.setter
def winner_criteria(self, winner_criteria):
"""Sets the winner_criteria of this GetEmailCampaign.
Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param winner_criteria: The winner_criteria of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._winner_criteria = winner_criteria
@property
def winner_delay(self):
"""Gets the winner_delay of this GetEmailCampaign. # noqa: E501
The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The winner_delay of this GetEmailCampaign. # noqa: E501
:rtype: int
"""
return self._winner_delay
@winner_delay.setter
def winner_delay(self, winner_delay):
"""Sets the winner_delay of this GetEmailCampaign.
The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param winner_delay: The winner_delay of this GetEmailCampaign. # noqa: E501
:type: int
"""
self._winner_delay = winner_delay
@property
def send_at_best_time(self):
"""Gets the send_at_best_time of this GetEmailCampaign. # noqa: E501
It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501
:return: The send_at_best_time of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._send_at_best_time
@send_at_best_time.setter
def send_at_best_time(self, send_at_best_time):
"""Sets the send_at_best_time of this GetEmailCampaign.
It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501
:param send_at_best_time: The send_at_best_time of this GetEmailCampaign. # noqa: E501
:type: bool
"""
self._send_at_best_time = send_at_best_time
@property
def test_sent(self):
"""Gets the test_sent of this GetEmailCampaign. # noqa: E501
Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501
:return: The test_sent of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._test_sent
@test_sent.setter
def test_sent(self, test_sent):
"""Sets the test_sent of this GetEmailCampaign.
Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501
:param test_sent: The test_sent of this GetEmailCampaign. # noqa: E501
:type: bool
"""
if test_sent is None:
raise ValueError("Invalid value for `test_sent`, must not be `None`") # noqa: E501
self._test_sent = test_sent
@property
def header(self):
"""Gets the header of this GetEmailCampaign. # noqa: E501
Header of the campaign # noqa: E501
:return: The header of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._header
@header.setter
def header(self, header):
"""Sets the header of this GetEmailCampaign.
Header of the campaign # noqa: E501
:param header: The header of this GetEmailCampaign. # noqa: E501
:type: str
"""
if header is None:
raise ValueError("Invalid value for `header`, must not be `None`") # noqa: E501
self._header = header
@property
def footer(self):
"""Gets the footer of this GetEmailCampaign. # noqa: E501
Footer of the campaign # noqa: E501
:return: The footer of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._footer
@footer.setter
def footer(self, footer):
"""Sets the footer of this GetEmailCampaign.
Footer of the campaign # noqa: E501
:param footer: The footer of this GetEmailCampaign. # noqa: E501
:type: str
"""
if footer is None:
raise ValueError("Invalid value for `footer`, must not be `None`") # noqa: E501
self._footer = footer
@property
def sender(self):
"""Gets the sender of this GetEmailCampaign. # noqa: E501
:return: The sender of this GetEmailCampaign. # noqa: E501
:rtype: GetExtendedCampaignOverviewSender
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this GetEmailCampaign.
:param sender: The sender of this GetEmailCampaign. # noqa: E501
:type: GetExtendedCampaignOverviewSender
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
self._sender = sender
@property
def reply_to(self):
"""Gets the reply_to of this GetEmailCampaign. # noqa: E501
Email defined as the \"Reply to\" of the campaign # noqa: E501
:return: The reply_to of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._reply_to
@reply_to.setter
def reply_to(self, reply_to):
"""Sets the reply_to of this GetEmailCampaign.
Email defined as the \"Reply to\" of the campaign # noqa: E501
:param reply_to: The reply_to of this GetEmailCampaign. # noqa: E501
:type: str
"""
if reply_to is None:
raise ValueError("Invalid value for `reply_to`, must not be `None`") # noqa: E501
self._reply_to = reply_to
@property
def to_field(self):
"""Gets the to_field of this GetEmailCampaign. # noqa: E501
Customisation of the \"to\" field of the campaign # noqa: E501
:return: The to_field of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._to_field
@to_field.setter
def to_field(self, to_field):
"""Sets the to_field of this GetEmailCampaign.
Customisation of the \"to\" field of the campaign # noqa: E501
:param to_field: The to_field of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._to_field = to_field
@property
def html_content(self):
"""Gets the html_content of this GetEmailCampaign. # noqa: E501
HTML content of the campaign # noqa: E501
:return: The html_content of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._html_content
@html_content.setter
def html_content(self, html_content):
"""Sets the html_content of this GetEmailCampaign.
HTML content of the campaign # noqa: E501
:param html_content: The html_content of this GetEmailCampaign. # noqa: E501
:type: str
"""
if html_content is None:
raise ValueError("Invalid value for `html_content`, must not be `None`") # noqa: E501
self._html_content = html_content
@property
def share_link(self):
"""Gets the share_link of this GetEmailCampaign. # noqa: E501
Link to share the campaign on social medias # noqa: E501
:return: The share_link of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._share_link
@share_link.setter
def share_link(self, share_link):
"""Sets the share_link of this GetEmailCampaign.
Link to share the campaign on social medias # noqa: E501
:param share_link: The share_link of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._share_link = share_link
@property
def tag(self):
"""Gets the tag of this GetEmailCampaign. # noqa: E501
Tag of the campaign # noqa: E501
:return: The tag of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this GetEmailCampaign.
Tag of the campaign # noqa: E501
:param tag: The tag of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._tag = tag
@property
def created_at(self):
"""Gets the created_at of this GetEmailCampaign. # noqa: E501
Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetEmailCampaign.
Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetEmailCampaign. # noqa: E501
:type: str
"""
if created_at is None:
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
self._created_at = created_at
@property
def modified_at(self):
"""Gets the modified_at of this GetEmailCampaign. # noqa: E501
UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetEmailCampaign.
UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetEmailCampaign. # noqa: E501
:type: str
"""
if modified_at is None:
raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501
self._modified_at = modified_at
@property
def inline_image_activation(self):
"""Gets the inline_image_activation of this GetEmailCampaign. # noqa: E501
Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501
:return: The inline_image_activation of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._inline_image_activation
@inline_image_activation.setter
def inline_image_activation(self, inline_image_activation):
"""Sets the inline_image_activation of this GetEmailCampaign.
Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501
:param inline_image_activation: The inline_image_activation of this GetEmailCampaign. # noqa: E501
:type: bool
"""
self._inline_image_activation = inline_image_activation
@property
def mirror_active(self):
"""Gets the mirror_active of this GetEmailCampaign. # noqa: E501
Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501
:return: The mirror_active of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._mirror_active
@mirror_active.setter
def mirror_active(self, mirror_active):
"""Sets the mirror_active of this GetEmailCampaign.
Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501
:param mirror_active: The mirror_active of this GetEmailCampaign. # noqa: E501
:type: bool
"""
self._mirror_active = mirror_active
@property
def recurring(self):
"""Gets the recurring of this GetEmailCampaign. # noqa: E501
FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501
:return: The recurring of this GetEmailCampaign. # noqa: E501
:rtype: bool
"""
return self._recurring
@recurring.setter
def recurring(self, recurring):
"""Sets the recurring of this GetEmailCampaign.
FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501
:param recurring: The recurring of this GetEmailCampaign. # noqa: E501
:type: bool
"""
self._recurring = recurring
@property
def sent_date(self):
"""Gets the sent_date of this GetEmailCampaign. # noqa: E501
Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501
:return: The sent_date of this GetEmailCampaign. # noqa: E501
:rtype: str
"""
return self._sent_date
@sent_date.setter
def sent_date(self, sent_date):
"""Sets the sent_date of this GetEmailCampaign.
Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501
:param sent_date: The sent_date of this GetEmailCampaign. # noqa: E501
:type: str
"""
self._sent_date = sent_date
@property
def return_bounce(self):
"""Gets the return_bounce of this GetEmailCampaign. # noqa: E501
Total number of non-delivered campaigns for a particular campaign id. # noqa: E501
:return: The return_bounce of this GetEmailCampaign. # noqa: E501
:rtype: int
"""
return self._return_bounce
@return_bounce.setter
def return_bounce(self, return_bounce):
"""Sets the return_bounce of this GetEmailCampaign.
Total number of non-delivered campaigns for a particular campaign id. # noqa: E501
:param return_bounce: The return_bounce of this GetEmailCampaign. # noqa: E501
:type: int
"""
self._return_bounce = return_bounce
@property
def recipients(self):
"""Gets the recipients of this GetEmailCampaign. # noqa: E501
:return: The recipients of this GetEmailCampaign. # noqa: E501
:rtype: object
"""
return self._recipients
@recipients.setter
def recipients(self, recipients):
"""Sets the recipients of this GetEmailCampaign.
:param recipients: The recipients of this GetEmailCampaign. # noqa: E501
:type: object
"""
if recipients is None:
raise ValueError("Invalid value for `recipients`, must not be `None`") # noqa: E501
self._recipients = recipients
@property
def statistics(self):
"""Gets the statistics of this GetEmailCampaign. # noqa: E501
:return: The statistics of this GetEmailCampaign. # noqa: E501
:rtype: object
"""
return self._statistics
@statistics.setter
def statistics(self, statistics):
"""Sets the statistics of this GetEmailCampaign.
:param statistics: The statistics of this GetEmailCampaign. # noqa: E501
:type: object
"""
if statistics is None:
raise ValueError("Invalid value for `statistics`, must not be `None`") # noqa: E501
self._statistics = statistics
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailCampaign, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailCampaign):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None, recipients=None, statistics=None)
|
59,030 |
sib_api_v3_sdk.models.get_email_campaign
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailCampaign):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,031 |
sib_api_v3_sdk.models.get_email_campaign
|
__init__
|
GetEmailCampaign - a model defined in Swagger
|
def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None, recipients=None, statistics=None): # noqa: E501
"""GetEmailCampaign - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._subject = None
self._type = None
self._status = None
self._scheduled_at = None
self._ab_testing = None
self._subject_a = None
self._subject_b = None
self._split_rule = None
self._winner_criteria = None
self._winner_delay = None
self._send_at_best_time = None
self._test_sent = None
self._header = None
self._footer = None
self._sender = None
self._reply_to = None
self._to_field = None
self._html_content = None
self._share_link = None
self._tag = None
self._created_at = None
self._modified_at = None
self._inline_image_activation = None
self._mirror_active = None
self._recurring = None
self._sent_date = None
self._return_bounce = None
self._recipients = None
self._statistics = None
self.discriminator = None
self.id = id
self.name = name
if subject is not None:
self.subject = subject
self.type = type
self.status = status
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if ab_testing is not None:
self.ab_testing = ab_testing
if subject_a is not None:
self.subject_a = subject_a
if subject_b is not None:
self.subject_b = subject_b
if split_rule is not None:
self.split_rule = split_rule
if winner_criteria is not None:
self.winner_criteria = winner_criteria
if winner_delay is not None:
self.winner_delay = winner_delay
if send_at_best_time is not None:
self.send_at_best_time = send_at_best_time
self.test_sent = test_sent
self.header = header
self.footer = footer
self.sender = sender
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
self.html_content = html_content
if share_link is not None:
self.share_link = share_link
if tag is not None:
self.tag = tag
self.created_at = created_at
self.modified_at = modified_at
if inline_image_activation is not None:
self.inline_image_activation = inline_image_activation
if mirror_active is not None:
self.mirror_active = mirror_active
if recurring is not None:
self.recurring = recurring
if sent_date is not None:
self.sent_date = sent_date
if return_bounce is not None:
self.return_bounce = return_bounce
self.recipients = recipients
self.statistics = statistics
|
(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None, recipients=None, statistics=None)
|
59,034 |
sib_api_v3_sdk.models.get_email_campaign
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailCampaign, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,036 |
sib_api_v3_sdk.models.get_email_campaigns
|
GetEmailCampaigns
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetEmailCampaigns(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'campaigns': 'list[object]',
'count': 'int'
}
attribute_map = {
'campaigns': 'campaigns',
'count': 'count'
}
def __init__(self, campaigns=None, count=None): # noqa: E501
"""GetEmailCampaigns - a model defined in Swagger""" # noqa: E501
self._campaigns = None
self._count = None
self.discriminator = None
if campaigns is not None:
self.campaigns = campaigns
if count is not None:
self.count = count
@property
def campaigns(self):
"""Gets the campaigns of this GetEmailCampaigns. # noqa: E501
:return: The campaigns of this GetEmailCampaigns. # noqa: E501
:rtype: list[object]
"""
return self._campaigns
@campaigns.setter
def campaigns(self, campaigns):
"""Sets the campaigns of this GetEmailCampaigns.
:param campaigns: The campaigns of this GetEmailCampaigns. # noqa: E501
:type: list[object]
"""
self._campaigns = campaigns
@property
def count(self):
"""Gets the count of this GetEmailCampaigns. # noqa: E501
Number of Email campaigns retrieved # noqa: E501
:return: The count of this GetEmailCampaigns. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetEmailCampaigns.
Number of Email campaigns retrieved # noqa: E501
:param count: The count of this GetEmailCampaigns. # noqa: E501
:type: int
"""
self._count = count
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailCampaigns, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailCampaigns):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(campaigns=None, count=None)
|
59,037 |
sib_api_v3_sdk.models.get_email_campaigns
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailCampaigns):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,038 |
sib_api_v3_sdk.models.get_email_campaigns
|
__init__
|
GetEmailCampaigns - a model defined in Swagger
|
def __init__(self, campaigns=None, count=None): # noqa: E501
"""GetEmailCampaigns - a model defined in Swagger""" # noqa: E501
self._campaigns = None
self._count = None
self.discriminator = None
if campaigns is not None:
self.campaigns = campaigns
if count is not None:
self.count = count
|
(self, campaigns=None, count=None)
|
59,041 |
sib_api_v3_sdk.models.get_email_campaigns
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailCampaigns, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,043 |
sib_api_v3_sdk.models.get_email_event_report
|
GetEmailEventReport
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetEmailEventReport(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'events': 'list[GetEmailEventReportEvents]'
}
attribute_map = {
'events': 'events'
}
def __init__(self, events=None): # noqa: E501
"""GetEmailEventReport - a model defined in Swagger""" # noqa: E501
self._events = None
self.discriminator = None
if events is not None:
self.events = events
@property
def events(self):
"""Gets the events of this GetEmailEventReport. # noqa: E501
:return: The events of this GetEmailEventReport. # noqa: E501
:rtype: list[GetEmailEventReportEvents]
"""
return self._events
@events.setter
def events(self, events):
"""Sets the events of this GetEmailEventReport.
:param events: The events of this GetEmailEventReport. # noqa: E501
:type: list[GetEmailEventReportEvents]
"""
self._events = events
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailEventReport, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailEventReport):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(events=None)
|
59,044 |
sib_api_v3_sdk.models.get_email_event_report
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailEventReport):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,045 |
sib_api_v3_sdk.models.get_email_event_report
|
__init__
|
GetEmailEventReport - a model defined in Swagger
|
def __init__(self, events=None): # noqa: E501
"""GetEmailEventReport - a model defined in Swagger""" # noqa: E501
self._events = None
self.discriminator = None
if events is not None:
self.events = events
|
(self, events=None)
|
59,048 |
sib_api_v3_sdk.models.get_email_event_report
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailEventReport, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,050 |
sib_api_v3_sdk.models.get_email_event_report_events
|
GetEmailEventReportEvents
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetEmailEventReportEvents(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email': 'str',
'_date': 'str',
'subject': 'str',
'message_id': 'str',
'event': 'str',
'reason': 'str',
'tag': 'str',
'ip': 'str',
'link': 'str',
'_from': 'str',
'template_id': 'int'
}
attribute_map = {
'email': 'email',
'_date': 'date',
'subject': 'subject',
'message_id': 'messageId',
'event': 'event',
'reason': 'reason',
'tag': 'tag',
'ip': 'ip',
'link': 'link',
'_from': 'from',
'template_id': 'templateId'
}
def __init__(self, email=None, _date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None, template_id=None): # noqa: E501
"""GetEmailEventReportEvents - a model defined in Swagger""" # noqa: E501
self._email = None
self.__date = None
self._subject = None
self._message_id = None
self._event = None
self._reason = None
self._tag = None
self._ip = None
self._link = None
self.__from = None
self._template_id = None
self.discriminator = None
self.email = email
self._date = _date
if subject is not None:
self.subject = subject
self.message_id = message_id
self.event = event
if reason is not None:
self.reason = reason
if tag is not None:
self.tag = tag
if ip is not None:
self.ip = ip
if link is not None:
self.link = link
if _from is not None:
self._from = _from
if template_id is not None:
self.template_id = template_id
@property
def email(self):
"""Gets the email of this GetEmailEventReportEvents. # noqa: E501
Email address which generates the event # noqa: E501
:return: The email of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetEmailEventReportEvents.
Email address which generates the event # noqa: E501
:param email: The email of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
if email is None:
raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
self._email = email
@property
def _date(self):
"""Gets the _date of this GetEmailEventReportEvents. # noqa: E501
UTC date-time on which the event has been generated # noqa: E501
:return: The _date of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self.__date
@_date.setter
def _date(self, _date):
"""Sets the _date of this GetEmailEventReportEvents.
UTC date-time on which the event has been generated # noqa: E501
:param _date: The _date of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
if _date is None:
raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501
self.__date = _date
@property
def subject(self):
"""Gets the subject of this GetEmailEventReportEvents. # noqa: E501
Subject of the event # noqa: E501
:return: The subject of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this GetEmailEventReportEvents.
Subject of the event # noqa: E501
:param subject: The subject of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self._subject = subject
@property
def message_id(self):
"""Gets the message_id of this GetEmailEventReportEvents. # noqa: E501
Message ID which generated the event # noqa: E501
:return: The message_id of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._message_id
@message_id.setter
def message_id(self, message_id):
"""Sets the message_id of this GetEmailEventReportEvents.
Message ID which generated the event # noqa: E501
:param message_id: The message_id of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
if message_id is None:
raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501
self._message_id = message_id
@property
def event(self):
"""Gets the event of this GetEmailEventReportEvents. # noqa: E501
Event which occurred # noqa: E501
:return: The event of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._event
@event.setter
def event(self, event):
"""Sets the event of this GetEmailEventReportEvents.
Event which occurred # noqa: E501
:param event: The event of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
if event is None:
raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501
allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error", "loadedByProxy"] # noqa: E501
if event not in allowed_values:
raise ValueError(
"Invalid value for `event` ({0}), must be one of {1}" # noqa: E501
.format(event, allowed_values)
)
self._event = event
@property
def reason(self):
"""Gets the reason of this GetEmailEventReportEvents. # noqa: E501
Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501
:return: The reason of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._reason
@reason.setter
def reason(self, reason):
"""Sets the reason of this GetEmailEventReportEvents.
Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501
:param reason: The reason of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self._reason = reason
@property
def tag(self):
"""Gets the tag of this GetEmailEventReportEvents. # noqa: E501
Tag of the email which generated the event # noqa: E501
:return: The tag of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this GetEmailEventReportEvents.
Tag of the email which generated the event # noqa: E501
:param tag: The tag of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self._tag = tag
@property
def ip(self):
"""Gets the ip of this GetEmailEventReportEvents. # noqa: E501
IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) # noqa: E501
:return: The ip of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this GetEmailEventReportEvents.
IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) # noqa: E501
:param ip: The ip of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self._ip = ip
@property
def link(self):
"""Gets the link of this GetEmailEventReportEvents. # noqa: E501
The link which is sent to the user (only available if the event is requests or opened or clicks) # noqa: E501
:return: The link of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self._link
@link.setter
def link(self, link):
"""Sets the link of this GetEmailEventReportEvents.
The link which is sent to the user (only available if the event is requests or opened or clicks) # noqa: E501
:param link: The link of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self._link = link
@property
def _from(self):
"""Gets the _from of this GetEmailEventReportEvents. # noqa: E501
Sender email from which the emails are sent # noqa: E501
:return: The _from of this GetEmailEventReportEvents. # noqa: E501
:rtype: str
"""
return self.__from
@_from.setter
def _from(self, _from):
"""Sets the _from of this GetEmailEventReportEvents.
Sender email from which the emails are sent # noqa: E501
:param _from: The _from of this GetEmailEventReportEvents. # noqa: E501
:type: str
"""
self.__from = _from
@property
def template_id(self):
"""Gets the template_id of this GetEmailEventReportEvents. # noqa: E501
ID of the template (only available if the email is template based) # noqa: E501
:return: The template_id of this GetEmailEventReportEvents. # noqa: E501
:rtype: int
"""
return self._template_id
@template_id.setter
def template_id(self, template_id):
"""Sets the template_id of this GetEmailEventReportEvents.
ID of the template (only available if the email is template based) # noqa: E501
:param template_id: The template_id of this GetEmailEventReportEvents. # noqa: E501
:type: int
"""
self._template_id = template_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailEventReportEvents, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailEventReportEvents):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(email=None, _date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None, template_id=None)
|
59,051 |
sib_api_v3_sdk.models.get_email_event_report_events
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetEmailEventReportEvents):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,052 |
sib_api_v3_sdk.models.get_email_event_report_events
|
__init__
|
GetEmailEventReportEvents - a model defined in Swagger
|
def __init__(self, email=None, _date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None, template_id=None): # noqa: E501
"""GetEmailEventReportEvents - a model defined in Swagger""" # noqa: E501
self._email = None
self.__date = None
self._subject = None
self._message_id = None
self._event = None
self._reason = None
self._tag = None
self._ip = None
self._link = None
self.__from = None
self._template_id = None
self.discriminator = None
self.email = email
self._date = _date
if subject is not None:
self.subject = subject
self.message_id = message_id
self.event = event
if reason is not None:
self.reason = reason
if tag is not None:
self.tag = tag
if ip is not None:
self.ip = ip
if link is not None:
self.link = link
if _from is not None:
self._from = _from
if template_id is not None:
self.template_id = template_id
|
(self, email=None, _date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None, template_id=None)
|
59,055 |
sib_api_v3_sdk.models.get_email_event_report_events
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetEmailEventReportEvents, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,057 |
sib_api_v3_sdk.models.get_extended_campaign_overview
|
GetExtendedCampaignOverview
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetExtendedCampaignOverview(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'int',
'name': 'str',
'subject': 'str',
'type': 'str',
'status': 'str',
'scheduled_at': 'str',
'ab_testing': 'bool',
'subject_a': 'str',
'subject_b': 'str',
'split_rule': 'int',
'winner_criteria': 'str',
'winner_delay': 'int',
'send_at_best_time': 'bool',
'test_sent': 'bool',
'header': 'str',
'footer': 'str',
'sender': 'GetExtendedCampaignOverviewSender',
'reply_to': 'str',
'to_field': 'str',
'html_content': 'str',
'share_link': 'str',
'tag': 'str',
'created_at': 'str',
'modified_at': 'str',
'inline_image_activation': 'bool',
'mirror_active': 'bool',
'recurring': 'bool',
'sent_date': 'str',
'return_bounce': 'int'
}
attribute_map = {
'id': 'id',
'name': 'name',
'subject': 'subject',
'type': 'type',
'status': 'status',
'scheduled_at': 'scheduledAt',
'ab_testing': 'abTesting',
'subject_a': 'subjectA',
'subject_b': 'subjectB',
'split_rule': 'splitRule',
'winner_criteria': 'winnerCriteria',
'winner_delay': 'winnerDelay',
'send_at_best_time': 'sendAtBestTime',
'test_sent': 'testSent',
'header': 'header',
'footer': 'footer',
'sender': 'sender',
'reply_to': 'replyTo',
'to_field': 'toField',
'html_content': 'htmlContent',
'share_link': 'shareLink',
'tag': 'tag',
'created_at': 'createdAt',
'modified_at': 'modifiedAt',
'inline_image_activation': 'inlineImageActivation',
'mirror_active': 'mirrorActive',
'recurring': 'recurring',
'sent_date': 'sentDate',
'return_bounce': 'returnBounce'
}
def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None): # noqa: E501
"""GetExtendedCampaignOverview - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._subject = None
self._type = None
self._status = None
self._scheduled_at = None
self._ab_testing = None
self._subject_a = None
self._subject_b = None
self._split_rule = None
self._winner_criteria = None
self._winner_delay = None
self._send_at_best_time = None
self._test_sent = None
self._header = None
self._footer = None
self._sender = None
self._reply_to = None
self._to_field = None
self._html_content = None
self._share_link = None
self._tag = None
self._created_at = None
self._modified_at = None
self._inline_image_activation = None
self._mirror_active = None
self._recurring = None
self._sent_date = None
self._return_bounce = None
self.discriminator = None
self.id = id
self.name = name
if subject is not None:
self.subject = subject
self.type = type
self.status = status
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if ab_testing is not None:
self.ab_testing = ab_testing
if subject_a is not None:
self.subject_a = subject_a
if subject_b is not None:
self.subject_b = subject_b
if split_rule is not None:
self.split_rule = split_rule
if winner_criteria is not None:
self.winner_criteria = winner_criteria
if winner_delay is not None:
self.winner_delay = winner_delay
if send_at_best_time is not None:
self.send_at_best_time = send_at_best_time
self.test_sent = test_sent
self.header = header
self.footer = footer
self.sender = sender
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
self.html_content = html_content
if share_link is not None:
self.share_link = share_link
if tag is not None:
self.tag = tag
self.created_at = created_at
self.modified_at = modified_at
if inline_image_activation is not None:
self.inline_image_activation = inline_image_activation
if mirror_active is not None:
self.mirror_active = mirror_active
if recurring is not None:
self.recurring = recurring
if sent_date is not None:
self.sent_date = sent_date
if return_bounce is not None:
self.return_bounce = return_bounce
@property
def id(self):
"""Gets the id of this GetExtendedCampaignOverview. # noqa: E501
ID of the campaign # noqa: E501
:return: The id of this GetExtendedCampaignOverview. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetExtendedCampaignOverview.
ID of the campaign # noqa: E501
:param id: The id of this GetExtendedCampaignOverview. # noqa: E501
:type: int
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this GetExtendedCampaignOverview. # noqa: E501
Name of the campaign # noqa: E501
:return: The name of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetExtendedCampaignOverview.
Name of the campaign # noqa: E501
:param name: The name of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def subject(self):
"""Gets the subject of this GetExtendedCampaignOverview. # noqa: E501
Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501
:return: The subject of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this GetExtendedCampaignOverview.
Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` # noqa: E501
:param subject: The subject of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._subject = subject
@property
def type(self):
"""Gets the type of this GetExtendedCampaignOverview. # noqa: E501
Type of campaign # noqa: E501
:return: The type of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this GetExtendedCampaignOverview.
Type of campaign # noqa: E501
:param type: The type of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if type is None:
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
allowed_values = ["classic", "trigger"] # noqa: E501
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
.format(type, allowed_values)
)
self._type = type
@property
def status(self):
"""Gets the status of this GetExtendedCampaignOverview. # noqa: E501
Status of the campaign # noqa: E501
:return: The status of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetExtendedCampaignOverview.
Status of the campaign # noqa: E501
:param status: The status of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["draft", "sent", "archive", "queued", "suspended", "in_process"] # noqa: E501
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
.format(status, allowed_values)
)
self._status = status
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetExtendedCampaignOverview. # noqa: E501
UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetExtendedCampaignOverview.
UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param scheduled_at: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._scheduled_at = scheduled_at
@property
def ab_testing(self):
"""Gets the ab_testing of this GetExtendedCampaignOverview. # noqa: E501
Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501
:return: The ab_testing of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._ab_testing
@ab_testing.setter
def ab_testing(self, ab_testing):
"""Sets the ab_testing of this GetExtendedCampaignOverview.
Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. # noqa: E501
:param ab_testing: The ab_testing of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
self._ab_testing = ab_testing
@property
def subject_a(self):
"""Gets the subject_a of this GetExtendedCampaignOverview. # noqa: E501
Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The subject_a of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._subject_a
@subject_a.setter
def subject_a(self, subject_a):
"""Sets the subject_a of this GetExtendedCampaignOverview.
Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param subject_a: The subject_a of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._subject_a = subject_a
@property
def subject_b(self):
"""Gets the subject_b of this GetExtendedCampaignOverview. # noqa: E501
Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The subject_b of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._subject_b
@subject_b.setter
def subject_b(self, subject_b):
"""Sets the subject_b of this GetExtendedCampaignOverview.
Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param subject_b: The subject_b of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._subject_b = subject_b
@property
def split_rule(self):
"""Gets the split_rule of this GetExtendedCampaignOverview. # noqa: E501
The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The split_rule of this GetExtendedCampaignOverview. # noqa: E501
:rtype: int
"""
return self._split_rule
@split_rule.setter
def split_rule(self, split_rule):
"""Sets the split_rule of this GetExtendedCampaignOverview.
The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param split_rule: The split_rule of this GetExtendedCampaignOverview. # noqa: E501
:type: int
"""
self._split_rule = split_rule
@property
def winner_criteria(self):
"""Gets the winner_criteria of this GetExtendedCampaignOverview. # noqa: E501
Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The winner_criteria of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._winner_criteria
@winner_criteria.setter
def winner_criteria(self, winner_criteria):
"""Sets the winner_criteria of this GetExtendedCampaignOverview.
Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param winner_criteria: The winner_criteria of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._winner_criteria = winner_criteria
@property
def winner_delay(self):
"""Gets the winner_delay of this GetExtendedCampaignOverview. # noqa: E501
The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:return: The winner_delay of this GetExtendedCampaignOverview. # noqa: E501
:rtype: int
"""
return self._winner_delay
@winner_delay.setter
def winner_delay(self, winner_delay):
"""Sets the winner_delay of this GetExtendedCampaignOverview.
The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true` # noqa: E501
:param winner_delay: The winner_delay of this GetExtendedCampaignOverview. # noqa: E501
:type: int
"""
self._winner_delay = winner_delay
@property
def send_at_best_time(self):
"""Gets the send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501
It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501
:return: The send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._send_at_best_time
@send_at_best_time.setter
def send_at_best_time(self, send_at_best_time):
"""Sets the send_at_best_time of this GetExtendedCampaignOverview.
It is true if you have chosen to send your campaign at best time, otherwise it is false # noqa: E501
:param send_at_best_time: The send_at_best_time of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
self._send_at_best_time = send_at_best_time
@property
def test_sent(self):
"""Gets the test_sent of this GetExtendedCampaignOverview. # noqa: E501
Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501
:return: The test_sent of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._test_sent
@test_sent.setter
def test_sent(self, test_sent):
"""Sets the test_sent of this GetExtendedCampaignOverview.
Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) # noqa: E501
:param test_sent: The test_sent of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
if test_sent is None:
raise ValueError("Invalid value for `test_sent`, must not be `None`") # noqa: E501
self._test_sent = test_sent
@property
def header(self):
"""Gets the header of this GetExtendedCampaignOverview. # noqa: E501
Header of the campaign # noqa: E501
:return: The header of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._header
@header.setter
def header(self, header):
"""Sets the header of this GetExtendedCampaignOverview.
Header of the campaign # noqa: E501
:param header: The header of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if header is None:
raise ValueError("Invalid value for `header`, must not be `None`") # noqa: E501
self._header = header
@property
def footer(self):
"""Gets the footer of this GetExtendedCampaignOverview. # noqa: E501
Footer of the campaign # noqa: E501
:return: The footer of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._footer
@footer.setter
def footer(self, footer):
"""Sets the footer of this GetExtendedCampaignOverview.
Footer of the campaign # noqa: E501
:param footer: The footer of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if footer is None:
raise ValueError("Invalid value for `footer`, must not be `None`") # noqa: E501
self._footer = footer
@property
def sender(self):
"""Gets the sender of this GetExtendedCampaignOverview. # noqa: E501
:return: The sender of this GetExtendedCampaignOverview. # noqa: E501
:rtype: GetExtendedCampaignOverviewSender
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this GetExtendedCampaignOverview.
:param sender: The sender of this GetExtendedCampaignOverview. # noqa: E501
:type: GetExtendedCampaignOverviewSender
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
self._sender = sender
@property
def reply_to(self):
"""Gets the reply_to of this GetExtendedCampaignOverview. # noqa: E501
Email defined as the \"Reply to\" of the campaign # noqa: E501
:return: The reply_to of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._reply_to
@reply_to.setter
def reply_to(self, reply_to):
"""Sets the reply_to of this GetExtendedCampaignOverview.
Email defined as the \"Reply to\" of the campaign # noqa: E501
:param reply_to: The reply_to of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if reply_to is None:
raise ValueError("Invalid value for `reply_to`, must not be `None`") # noqa: E501
self._reply_to = reply_to
@property
def to_field(self):
"""Gets the to_field of this GetExtendedCampaignOverview. # noqa: E501
Customisation of the \"to\" field of the campaign # noqa: E501
:return: The to_field of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._to_field
@to_field.setter
def to_field(self, to_field):
"""Sets the to_field of this GetExtendedCampaignOverview.
Customisation of the \"to\" field of the campaign # noqa: E501
:param to_field: The to_field of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._to_field = to_field
@property
def html_content(self):
"""Gets the html_content of this GetExtendedCampaignOverview. # noqa: E501
HTML content of the campaign # noqa: E501
:return: The html_content of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._html_content
@html_content.setter
def html_content(self, html_content):
"""Sets the html_content of this GetExtendedCampaignOverview.
HTML content of the campaign # noqa: E501
:param html_content: The html_content of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if html_content is None:
raise ValueError("Invalid value for `html_content`, must not be `None`") # noqa: E501
self._html_content = html_content
@property
def share_link(self):
"""Gets the share_link of this GetExtendedCampaignOverview. # noqa: E501
Link to share the campaign on social medias # noqa: E501
:return: The share_link of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._share_link
@share_link.setter
def share_link(self, share_link):
"""Sets the share_link of this GetExtendedCampaignOverview.
Link to share the campaign on social medias # noqa: E501
:param share_link: The share_link of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._share_link = share_link
@property
def tag(self):
"""Gets the tag of this GetExtendedCampaignOverview. # noqa: E501
Tag of the campaign # noqa: E501
:return: The tag of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this GetExtendedCampaignOverview.
Tag of the campaign # noqa: E501
:param tag: The tag of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._tag = tag
@property
def created_at(self):
"""Gets the created_at of this GetExtendedCampaignOverview. # noqa: E501
Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetExtendedCampaignOverview.
Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if created_at is None:
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
self._created_at = created_at
@property
def modified_at(self):
"""Gets the modified_at of this GetExtendedCampaignOverview. # noqa: E501
UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetExtendedCampaignOverview.
UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
if modified_at is None:
raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501
self._modified_at = modified_at
@property
def inline_image_activation(self):
"""Gets the inline_image_activation of this GetExtendedCampaignOverview. # noqa: E501
Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501
:return: The inline_image_activation of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._inline_image_activation
@inline_image_activation.setter
def inline_image_activation(self, inline_image_activation):
"""Sets the inline_image_activation of this GetExtendedCampaignOverview.
Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. # noqa: E501
:param inline_image_activation: The inline_image_activation of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
self._inline_image_activation = inline_image_activation
@property
def mirror_active(self):
"""Gets the mirror_active of this GetExtendedCampaignOverview. # noqa: E501
Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501
:return: The mirror_active of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._mirror_active
@mirror_active.setter
def mirror_active(self, mirror_active):
"""Sets the mirror_active of this GetExtendedCampaignOverview.
Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign # noqa: E501
:param mirror_active: The mirror_active of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
self._mirror_active = mirror_active
@property
def recurring(self):
"""Gets the recurring of this GetExtendedCampaignOverview. # noqa: E501
FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501
:return: The recurring of this GetExtendedCampaignOverview. # noqa: E501
:rtype: bool
"""
return self._recurring
@recurring.setter
def recurring(self, recurring):
"""Sets the recurring of this GetExtendedCampaignOverview.
FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times # noqa: E501
:param recurring: The recurring of this GetExtendedCampaignOverview. # noqa: E501
:type: bool
"""
self._recurring = recurring
@property
def sent_date(self):
"""Gets the sent_date of this GetExtendedCampaignOverview. # noqa: E501
Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501
:return: The sent_date of this GetExtendedCampaignOverview. # noqa: E501
:rtype: str
"""
return self._sent_date
@sent_date.setter
def sent_date(self, sent_date):
"""Sets the sent_date of this GetExtendedCampaignOverview.
Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501
:param sent_date: The sent_date of this GetExtendedCampaignOverview. # noqa: E501
:type: str
"""
self._sent_date = sent_date
@property
def return_bounce(self):
"""Gets the return_bounce of this GetExtendedCampaignOverview. # noqa: E501
Total number of non-delivered campaigns for a particular campaign id. # noqa: E501
:return: The return_bounce of this GetExtendedCampaignOverview. # noqa: E501
:rtype: int
"""
return self._return_bounce
@return_bounce.setter
def return_bounce(self, return_bounce):
"""Sets the return_bounce of this GetExtendedCampaignOverview.
Total number of non-delivered campaigns for a particular campaign id. # noqa: E501
:param return_bounce: The return_bounce of this GetExtendedCampaignOverview. # noqa: E501
:type: int
"""
self._return_bounce = return_bounce
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetExtendedCampaignOverview, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetExtendedCampaignOverview):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None)
|
59,058 |
sib_api_v3_sdk.models.get_extended_campaign_overview
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetExtendedCampaignOverview):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,059 |
sib_api_v3_sdk.models.get_extended_campaign_overview
|
__init__
|
GetExtendedCampaignOverview - a model defined in Swagger
|
def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None): # noqa: E501
"""GetExtendedCampaignOverview - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._subject = None
self._type = None
self._status = None
self._scheduled_at = None
self._ab_testing = None
self._subject_a = None
self._subject_b = None
self._split_rule = None
self._winner_criteria = None
self._winner_delay = None
self._send_at_best_time = None
self._test_sent = None
self._header = None
self._footer = None
self._sender = None
self._reply_to = None
self._to_field = None
self._html_content = None
self._share_link = None
self._tag = None
self._created_at = None
self._modified_at = None
self._inline_image_activation = None
self._mirror_active = None
self._recurring = None
self._sent_date = None
self._return_bounce = None
self.discriminator = None
self.id = id
self.name = name
if subject is not None:
self.subject = subject
self.type = type
self.status = status
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if ab_testing is not None:
self.ab_testing = ab_testing
if subject_a is not None:
self.subject_a = subject_a
if subject_b is not None:
self.subject_b = subject_b
if split_rule is not None:
self.split_rule = split_rule
if winner_criteria is not None:
self.winner_criteria = winner_criteria
if winner_delay is not None:
self.winner_delay = winner_delay
if send_at_best_time is not None:
self.send_at_best_time = send_at_best_time
self.test_sent = test_sent
self.header = header
self.footer = footer
self.sender = sender
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
self.html_content = html_content
if share_link is not None:
self.share_link = share_link
if tag is not None:
self.tag = tag
self.created_at = created_at
self.modified_at = modified_at
if inline_image_activation is not None:
self.inline_image_activation = inline_image_activation
if mirror_active is not None:
self.mirror_active = mirror_active
if recurring is not None:
self.recurring = recurring
if sent_date is not None:
self.sent_date = sent_date
if return_bounce is not None:
self.return_bounce = return_bounce
|
(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, ab_testing=None, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, send_at_best_time=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, sent_date=None, return_bounce=None)
|
59,062 |
sib_api_v3_sdk.models.get_extended_campaign_overview
|
to_dict
|
Returns the model properties as a dict
|
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetExtendedCampaignOverview, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,064 |
sib_api_v3_sdk.models.get_extended_campaign_overview_sender
|
GetExtendedCampaignOverviewSender
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetExtendedCampaignOverviewSender(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'email': 'str',
'id': 'str'
}
attribute_map = {
'name': 'name',
'email': 'email',
'id': 'id'
}
def __init__(self, name=None, email=None, id=None): # noqa: E501
"""GetExtendedCampaignOverviewSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._id = None
self.discriminator = None
if name is not None:
self.name = name
if email is not None:
self.email = email
if id is not None:
self.id = id
@property
def name(self):
"""Gets the name of this GetExtendedCampaignOverviewSender. # noqa: E501
Sender name of the campaign # noqa: E501
:return: The name of this GetExtendedCampaignOverviewSender. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetExtendedCampaignOverviewSender.
Sender name of the campaign # noqa: E501
:param name: The name of this GetExtendedCampaignOverviewSender. # noqa: E501
:type: str
"""
self._name = name
@property
def email(self):
"""Gets the email of this GetExtendedCampaignOverviewSender. # noqa: E501
Sender email of the campaign # noqa: E501
:return: The email of this GetExtendedCampaignOverviewSender. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetExtendedCampaignOverviewSender.
Sender email of the campaign # noqa: E501
:param email: The email of this GetExtendedCampaignOverviewSender. # noqa: E501
:type: str
"""
self._email = email
@property
def id(self):
"""Gets the id of this GetExtendedCampaignOverviewSender. # noqa: E501
Sender id of the campaign # noqa: E501
:return: The id of this GetExtendedCampaignOverviewSender. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetExtendedCampaignOverviewSender.
Sender id of the campaign # noqa: E501
:param id: The id of this GetExtendedCampaignOverviewSender. # noqa: E501
:type: str
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(GetExtendedCampaignOverviewSender, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetExtendedCampaignOverviewSender):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, email=None, id=None)
|
59,065 |
sib_api_v3_sdk.models.get_extended_campaign_overview_sender
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetExtendedCampaignOverviewSender):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,066 |
sib_api_v3_sdk.models.get_extended_campaign_overview_sender
|
__init__
|
GetExtendedCampaignOverviewSender - a model defined in Swagger
|
def __init__(self, name=None, email=None, id=None): # noqa: E501
"""GetExtendedCampaignOverviewSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._id = None
self.discriminator = None
if name is not None:
self.name = name
if email is not None:
self.email = email
if id is not None:
self.id = id
|
(self, name=None, email=None, id=None)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.