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
⌀ |
---|---|---|---|---|---|
59,244 |
sib_api_v3_sdk.models.get_inbound_email_events_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(GetInboundEmailEventsEvents, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,246 |
sib_api_v3_sdk.models.get_ip
|
GetIp
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetIp(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',
'ip': 'str',
'active': 'bool',
'domain': 'str'
}
attribute_map = {
'id': 'id',
'ip': 'ip',
'active': 'active',
'domain': 'domain'
}
def __init__(self, id=None, ip=None, active=None, domain=None): # noqa: E501
"""GetIp - a model defined in Swagger""" # noqa: E501
self._id = None
self._ip = None
self._active = None
self._domain = None
self.discriminator = None
self.id = id
self.ip = ip
self.active = active
self.domain = domain
@property
def id(self):
"""Gets the id of this GetIp. # noqa: E501
ID of the dedicated IP # noqa: E501
:return: The id of this GetIp. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetIp.
ID of the dedicated IP # noqa: E501
:param id: The id of this GetIp. # 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 ip(self):
"""Gets the ip of this GetIp. # noqa: E501
Dedicated IP # noqa: E501
:return: The ip of this GetIp. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this GetIp.
Dedicated IP # noqa: E501
:param ip: The ip of this GetIp. # noqa: E501
:type: str
"""
if ip is None:
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
self._ip = ip
@property
def active(self):
"""Gets the active of this GetIp. # noqa: E501
Status of the IP (true=active, false=inactive) # noqa: E501
:return: The active of this GetIp. # noqa: E501
:rtype: bool
"""
return self._active
@active.setter
def active(self, active):
"""Sets the active of this GetIp.
Status of the IP (true=active, false=inactive) # noqa: E501
:param active: The active of this GetIp. # noqa: E501
:type: bool
"""
if active is None:
raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501
self._active = active
@property
def domain(self):
"""Gets the domain of this GetIp. # noqa: E501
Domain associated to the IP # noqa: E501
:return: The domain of this GetIp. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this GetIp.
Domain associated to the IP # noqa: E501
:param domain: The domain of this GetIp. # noqa: E501
:type: str
"""
if domain is None:
raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501
self._domain = domain
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(GetIp, 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, GetIp):
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, ip=None, active=None, domain=None)
|
59,247 |
sib_api_v3_sdk.models.get_ip
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetIp):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,248 |
sib_api_v3_sdk.models.get_ip
|
__init__
|
GetIp - a model defined in Swagger
|
def __init__(self, id=None, ip=None, active=None, domain=None): # noqa: E501
"""GetIp - a model defined in Swagger""" # noqa: E501
self._id = None
self._ip = None
self._active = None
self._domain = None
self.discriminator = None
self.id = id
self.ip = ip
self.active = active
self.domain = domain
|
(self, id=None, ip=None, active=None, domain=None)
|
59,251 |
sib_api_v3_sdk.models.get_ip
|
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(GetIp, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,253 |
sib_api_v3_sdk.models.get_ip_from_sender
|
GetIpFromSender
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetIpFromSender(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',
'ip': 'str',
'domain': 'str',
'weight': 'int'
}
attribute_map = {
'id': 'id',
'ip': 'ip',
'domain': 'domain',
'weight': 'weight'
}
def __init__(self, id=None, ip=None, domain=None, weight=None): # noqa: E501
"""GetIpFromSender - a model defined in Swagger""" # noqa: E501
self._id = None
self._ip = None
self._domain = None
self._weight = None
self.discriminator = None
self.id = id
self.ip = ip
self.domain = domain
self.weight = weight
@property
def id(self):
"""Gets the id of this GetIpFromSender. # noqa: E501
ID of the dedicated IP # noqa: E501
:return: The id of this GetIpFromSender. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetIpFromSender.
ID of the dedicated IP # noqa: E501
:param id: The id of this GetIpFromSender. # 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 ip(self):
"""Gets the ip of this GetIpFromSender. # noqa: E501
Dedicated IP # noqa: E501
:return: The ip of this GetIpFromSender. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this GetIpFromSender.
Dedicated IP # noqa: E501
:param ip: The ip of this GetIpFromSender. # noqa: E501
:type: str
"""
if ip is None:
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
self._ip = ip
@property
def domain(self):
"""Gets the domain of this GetIpFromSender. # noqa: E501
Domain associated to the IP # noqa: E501
:return: The domain of this GetIpFromSender. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this GetIpFromSender.
Domain associated to the IP # noqa: E501
:param domain: The domain of this GetIpFromSender. # noqa: E501
:type: str
"""
if domain is None:
raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501
self._domain = domain
@property
def weight(self):
"""Gets the weight of this GetIpFromSender. # noqa: E501
Weight of the IP # noqa: E501
:return: The weight of this GetIpFromSender. # noqa: E501
:rtype: int
"""
return self._weight
@weight.setter
def weight(self, weight):
"""Sets the weight of this GetIpFromSender.
Weight of the IP # noqa: E501
:param weight: The weight of this GetIpFromSender. # noqa: E501
:type: int
"""
if weight is None:
raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501
self._weight = weight
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(GetIpFromSender, 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, GetIpFromSender):
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, ip=None, domain=None, weight=None)
|
59,254 |
sib_api_v3_sdk.models.get_ip_from_sender
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetIpFromSender):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,255 |
sib_api_v3_sdk.models.get_ip_from_sender
|
__init__
|
GetIpFromSender - a model defined in Swagger
|
def __init__(self, id=None, ip=None, domain=None, weight=None): # noqa: E501
"""GetIpFromSender - a model defined in Swagger""" # noqa: E501
self._id = None
self._ip = None
self._domain = None
self._weight = None
self.discriminator = None
self.id = id
self.ip = ip
self.domain = domain
self.weight = weight
|
(self, id=None, ip=None, domain=None, weight=None)
|
59,258 |
sib_api_v3_sdk.models.get_ip_from_sender
|
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(GetIpFromSender, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,260 |
sib_api_v3_sdk.models.get_ips
|
GetIps
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetIps(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 = {
'ips': 'list[GetIp]'
}
attribute_map = {
'ips': 'ips'
}
def __init__(self, ips=None): # noqa: E501
"""GetIps - a model defined in Swagger""" # noqa: E501
self._ips = None
self.discriminator = None
self.ips = ips
@property
def ips(self):
"""Gets the ips of this GetIps. # noqa: E501
Dedicated IP(s) available on your account # noqa: E501
:return: The ips of this GetIps. # noqa: E501
:rtype: list[GetIp]
"""
return self._ips
@ips.setter
def ips(self, ips):
"""Sets the ips of this GetIps.
Dedicated IP(s) available on your account # noqa: E501
:param ips: The ips of this GetIps. # noqa: E501
:type: list[GetIp]
"""
if ips is None:
raise ValueError("Invalid value for `ips`, must not be `None`") # noqa: E501
self._ips = ips
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(GetIps, 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, GetIps):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(ips=None)
|
59,261 |
sib_api_v3_sdk.models.get_ips
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetIps):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,262 |
sib_api_v3_sdk.models.get_ips
|
__init__
|
GetIps - a model defined in Swagger
|
def __init__(self, ips=None): # noqa: E501
"""GetIps - a model defined in Swagger""" # noqa: E501
self._ips = None
self.discriminator = None
self.ips = ips
|
(self, ips=None)
|
59,265 |
sib_api_v3_sdk.models.get_ips
|
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(GetIps, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,267 |
sib_api_v3_sdk.models.get_ips_from_sender
|
GetIpsFromSender
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetIpsFromSender(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 = {
'ips': 'list[GetIpFromSender]'
}
attribute_map = {
'ips': 'ips'
}
def __init__(self, ips=None): # noqa: E501
"""GetIpsFromSender - a model defined in Swagger""" # noqa: E501
self._ips = None
self.discriminator = None
self.ips = ips
@property
def ips(self):
"""Gets the ips of this GetIpsFromSender. # noqa: E501
Dedicated IP(s) linked to a sender # noqa: E501
:return: The ips of this GetIpsFromSender. # noqa: E501
:rtype: list[GetIpFromSender]
"""
return self._ips
@ips.setter
def ips(self, ips):
"""Sets the ips of this GetIpsFromSender.
Dedicated IP(s) linked to a sender # noqa: E501
:param ips: The ips of this GetIpsFromSender. # noqa: E501
:type: list[GetIpFromSender]
"""
if ips is None:
raise ValueError("Invalid value for `ips`, must not be `None`") # noqa: E501
self._ips = ips
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(GetIpsFromSender, 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, GetIpsFromSender):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(ips=None)
|
59,268 |
sib_api_v3_sdk.models.get_ips_from_sender
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetIpsFromSender):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,269 |
sib_api_v3_sdk.models.get_ips_from_sender
|
__init__
|
GetIpsFromSender - a model defined in Swagger
|
def __init__(self, ips=None): # noqa: E501
"""GetIpsFromSender - a model defined in Swagger""" # noqa: E501
self._ips = None
self.discriminator = None
self.ips = ips
|
(self, ips=None)
|
59,272 |
sib_api_v3_sdk.models.get_ips_from_sender
|
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(GetIpsFromSender, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,274 |
sib_api_v3_sdk.models.get_list
|
GetList
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetList(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',
'total_blacklisted': 'int',
'total_subscribers': 'int',
'unique_subscribers': 'int'
}
attribute_map = {
'id': 'id',
'name': 'name',
'total_blacklisted': 'totalBlacklisted',
'total_subscribers': 'totalSubscribers',
'unique_subscribers': 'uniqueSubscribers'
}
def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers=None, unique_subscribers=None): # noqa: E501
"""GetList - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._total_blacklisted = None
self._total_subscribers = None
self._unique_subscribers = None
self.discriminator = None
self.id = id
self.name = name
self.total_blacklisted = total_blacklisted
self.total_subscribers = total_subscribers
self.unique_subscribers = unique_subscribers
@property
def id(self):
"""Gets the id of this GetList. # noqa: E501
ID of the list # noqa: E501
:return: The id of this GetList. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetList.
ID of the list # noqa: E501
:param id: The id of this GetList. # 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 GetList. # noqa: E501
Name of the list # noqa: E501
:return: The name of this GetList. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetList.
Name of the list # noqa: E501
:param name: The name of this GetList. # 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 total_blacklisted(self):
"""Gets the total_blacklisted of this GetList. # noqa: E501
Number of blacklisted contacts in the list # noqa: E501
:return: The total_blacklisted of this GetList. # noqa: E501
:rtype: int
"""
return self._total_blacklisted
@total_blacklisted.setter
def total_blacklisted(self, total_blacklisted):
"""Sets the total_blacklisted of this GetList.
Number of blacklisted contacts in the list # noqa: E501
:param total_blacklisted: The total_blacklisted of this GetList. # noqa: E501
:type: int
"""
if total_blacklisted is None:
raise ValueError("Invalid value for `total_blacklisted`, must not be `None`") # noqa: E501
self._total_blacklisted = total_blacklisted
@property
def total_subscribers(self):
"""Gets the total_subscribers of this GetList. # noqa: E501
Number of contacts in the list # noqa: E501
:return: The total_subscribers of this GetList. # noqa: E501
:rtype: int
"""
return self._total_subscribers
@total_subscribers.setter
def total_subscribers(self, total_subscribers):
"""Sets the total_subscribers of this GetList.
Number of contacts in the list # noqa: E501
:param total_subscribers: The total_subscribers of this GetList. # noqa: E501
:type: int
"""
if total_subscribers is None:
raise ValueError("Invalid value for `total_subscribers`, must not be `None`") # noqa: E501
self._total_subscribers = total_subscribers
@property
def unique_subscribers(self):
"""Gets the unique_subscribers of this GetList. # noqa: E501
Number of unique contacts in the list # noqa: E501
:return: The unique_subscribers of this GetList. # noqa: E501
:rtype: int
"""
return self._unique_subscribers
@unique_subscribers.setter
def unique_subscribers(self, unique_subscribers):
"""Sets the unique_subscribers of this GetList.
Number of unique contacts in the list # noqa: E501
:param unique_subscribers: The unique_subscribers of this GetList. # noqa: E501
:type: int
"""
if unique_subscribers is None:
raise ValueError("Invalid value for `unique_subscribers`, must not be `None`") # noqa: E501
self._unique_subscribers = unique_subscribers
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(GetList, 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, GetList):
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, total_blacklisted=None, total_subscribers=None, unique_subscribers=None)
|
59,275 |
sib_api_v3_sdk.models.get_list
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetList):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,276 |
sib_api_v3_sdk.models.get_list
|
__init__
|
GetList - a model defined in Swagger
|
def __init__(self, id=None, name=None, total_blacklisted=None, total_subscribers=None, unique_subscribers=None): # noqa: E501
"""GetList - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._total_blacklisted = None
self._total_subscribers = None
self._unique_subscribers = None
self.discriminator = None
self.id = id
self.name = name
self.total_blacklisted = total_blacklisted
self.total_subscribers = total_subscribers
self.unique_subscribers = unique_subscribers
|
(self, id=None, name=None, total_blacklisted=None, total_subscribers=None, unique_subscribers=None)
|
59,279 |
sib_api_v3_sdk.models.get_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(GetList, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,281 |
sib_api_v3_sdk.models.get_lists
|
GetLists
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetLists(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 = {
'lists': 'list[object]',
'count': 'int'
}
attribute_map = {
'lists': 'lists',
'count': 'count'
}
def __init__(self, lists=None, count=None): # noqa: E501
"""GetLists - a model defined in Swagger""" # noqa: E501
self._lists = None
self._count = None
self.discriminator = None
if lists is not None:
self.lists = lists
if count is not None:
self.count = count
@property
def lists(self):
"""Gets the lists of this GetLists. # noqa: E501
Listing of all the lists available in your account # noqa: E501
:return: The lists of this GetLists. # noqa: E501
:rtype: list[object]
"""
return self._lists
@lists.setter
def lists(self, lists):
"""Sets the lists of this GetLists.
Listing of all the lists available in your account # noqa: E501
:param lists: The lists of this GetLists. # noqa: E501
:type: list[object]
"""
self._lists = lists
@property
def count(self):
"""Gets the count of this GetLists. # noqa: E501
Number of lists in your account # noqa: E501
:return: The count of this GetLists. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetLists.
Number of lists in your account # noqa: E501
:param count: The count of this GetLists. # 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(GetLists, 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, GetLists):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(lists=None, count=None)
|
59,282 |
sib_api_v3_sdk.models.get_lists
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetLists):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,283 |
sib_api_v3_sdk.models.get_lists
|
__init__
|
GetLists - a model defined in Swagger
|
def __init__(self, lists=None, count=None): # noqa: E501
"""GetLists - a model defined in Swagger""" # noqa: E501
self._lists = None
self._count = None
self.discriminator = None
if lists is not None:
self.lists = lists
if count is not None:
self.count = count
|
(self, lists=None, count=None)
|
59,286 |
sib_api_v3_sdk.models.get_lists
|
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(GetLists, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,288 |
sib_api_v3_sdk.models.get_process
|
GetProcess
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetProcess(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',
'status': 'str',
'name': 'str',
'export_url': 'str'
}
attribute_map = {
'id': 'id',
'status': 'status',
'name': 'name',
'export_url': 'export_url'
}
def __init__(self, id=None, status=None, name=None, export_url=None): # noqa: E501
"""GetProcess - a model defined in Swagger""" # noqa: E501
self._id = None
self._status = None
self._name = None
self._export_url = None
self.discriminator = None
self.id = id
self.status = status
self.name = name
if export_url is not None:
self.export_url = export_url
@property
def id(self):
"""Gets the id of this GetProcess. # noqa: E501
Id of the process # noqa: E501
:return: The id of this GetProcess. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetProcess.
Id of the process # noqa: E501
:param id: The id of this GetProcess. # 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 status(self):
"""Gets the status of this GetProcess. # noqa: E501
Status of the process # noqa: E501
:return: The status of this GetProcess. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetProcess.
Status of the process # noqa: E501
:param status: The status of this GetProcess. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["queued", "in_process", "completed"] # 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 name(self):
"""Gets the name of this GetProcess. # noqa: E501
Process name # noqa: E501
:return: The name of this GetProcess. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetProcess.
Process name # noqa: E501
:param name: The name of this GetProcess. # 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 export_url(self):
"""Gets the export_url of this GetProcess. # noqa: E501
URL on which send export the of contacts once the process is completed # noqa: E501
:return: The export_url of this GetProcess. # noqa: E501
:rtype: str
"""
return self._export_url
@export_url.setter
def export_url(self, export_url):
"""Sets the export_url of this GetProcess.
URL on which send export the of contacts once the process is completed # noqa: E501
:param export_url: The export_url of this GetProcess. # noqa: E501
:type: str
"""
self._export_url = export_url
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(GetProcess, 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, GetProcess):
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, status=None, name=None, export_url=None)
|
59,289 |
sib_api_v3_sdk.models.get_process
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetProcess):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,290 |
sib_api_v3_sdk.models.get_process
|
__init__
|
GetProcess - a model defined in Swagger
|
def __init__(self, id=None, status=None, name=None, export_url=None): # noqa: E501
"""GetProcess - a model defined in Swagger""" # noqa: E501
self._id = None
self._status = None
self._name = None
self._export_url = None
self.discriminator = None
self.id = id
self.status = status
self.name = name
if export_url is not None:
self.export_url = export_url
|
(self, id=None, status=None, name=None, export_url=None)
|
59,293 |
sib_api_v3_sdk.models.get_process
|
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(GetProcess, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,295 |
sib_api_v3_sdk.models.get_processes
|
GetProcesses
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetProcesses(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 = {
'processes': 'list[GetProcess]',
'count': 'int'
}
attribute_map = {
'processes': 'processes',
'count': 'count'
}
def __init__(self, processes=None, count=None): # noqa: E501
"""GetProcesses - a model defined in Swagger""" # noqa: E501
self._processes = None
self._count = None
self.discriminator = None
if processes is not None:
self.processes = processes
if count is not None:
self.count = count
@property
def processes(self):
"""Gets the processes of this GetProcesses. # noqa: E501
List of processes available on your account # noqa: E501
:return: The processes of this GetProcesses. # noqa: E501
:rtype: list[GetProcess]
"""
return self._processes
@processes.setter
def processes(self, processes):
"""Sets the processes of this GetProcesses.
List of processes available on your account # noqa: E501
:param processes: The processes of this GetProcesses. # noqa: E501
:type: list[GetProcess]
"""
self._processes = processes
@property
def count(self):
"""Gets the count of this GetProcesses. # noqa: E501
Number of processes available on your account # noqa: E501
:return: The count of this GetProcesses. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetProcesses.
Number of processes available on your account # noqa: E501
:param count: The count of this GetProcesses. # 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(GetProcesses, 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, GetProcesses):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(processes=None, count=None)
|
59,296 |
sib_api_v3_sdk.models.get_processes
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetProcesses):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,297 |
sib_api_v3_sdk.models.get_processes
|
__init__
|
GetProcesses - a model defined in Swagger
|
def __init__(self, processes=None, count=None): # noqa: E501
"""GetProcesses - a model defined in Swagger""" # noqa: E501
self._processes = None
self._count = None
self.discriminator = None
if processes is not None:
self.processes = processes
if count is not None:
self.count = count
|
(self, processes=None, count=None)
|
59,300 |
sib_api_v3_sdk.models.get_processes
|
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(GetProcesses, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,302 |
sib_api_v3_sdk.models.get_product_details
|
GetProductDetails
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetProductDetails(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': 'str',
'name': 'str',
'created_at': 'str',
'modified_at': 'str',
'url': 'str',
'image_url': 'str',
'sku': 'str',
'price': 'float',
'categories': 'list[str]',
'parent_id': 'str',
's3_original': 'str',
's3_thumb_analytics': 'str',
'meta_info': 'object',
's3_thumb_editor': 'str',
'is_deleted': 'bool'
}
attribute_map = {
'id': 'id',
'name': 'name',
'created_at': 'createdAt',
'modified_at': 'modifiedAt',
'url': 'url',
'image_url': 'imageUrl',
'sku': 'sku',
'price': 'price',
'categories': 'categories',
'parent_id': 'parentId',
's3_original': 's3Original',
's3_thumb_analytics': 's3ThumbAnalytics',
'meta_info': 'metaInfo',
's3_thumb_editor': 's3ThumbEditor',
'is_deleted': 'isDeleted'
}
def __init__(self, id=None, name=None, created_at=None, modified_at=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, s3_original=None, s3_thumb_analytics=None, meta_info=None, s3_thumb_editor=None, is_deleted=None): # noqa: E501
"""GetProductDetails - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._created_at = None
self._modified_at = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._s3_original = None
self._s3_thumb_analytics = None
self._meta_info = None
self._s3_thumb_editor = None
self._is_deleted = None
self.discriminator = None
self.id = id
self.name = name
self.created_at = created_at
self.modified_at = modified_at
if url is not None:
self.url = url
if image_url is not None:
self.image_url = image_url
if sku is not None:
self.sku = sku
if price is not None:
self.price = price
if categories is not None:
self.categories = categories
if parent_id is not None:
self.parent_id = parent_id
if s3_original is not None:
self.s3_original = s3_original
self.s3_thumb_analytics = s3_thumb_analytics
if meta_info is not None:
self.meta_info = meta_info
self.s3_thumb_editor = s3_thumb_editor
if is_deleted is not None:
self.is_deleted = is_deleted
@property
def id(self):
"""Gets the id of this GetProductDetails. # noqa: E501
Product ID for which you requested the details # noqa: E501
:return: The id of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetProductDetails.
Product ID for which you requested the details # noqa: E501
:param id: The id of this GetProductDetails. # noqa: E501
:type: str
"""
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 GetProductDetails. # noqa: E501
Name of the product for which you requested the details # noqa: E501
:return: The name of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetProductDetails.
Name of the product for which you requested the details # noqa: E501
:param name: The name of this GetProductDetails. # 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 created_at(self):
"""Gets the created_at of this GetProductDetails. # noqa: E501
Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetProductDetails.
Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetProductDetails. # 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 GetProductDetails. # noqa: E501
Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetProductDetails.
Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetProductDetails. # 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 url(self):
"""Gets the url of this GetProductDetails. # noqa: E501
URL to the product # noqa: E501
:return: The url of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this GetProductDetails.
URL to the product # noqa: E501
:param url: The url of this GetProductDetails. # noqa: E501
:type: str
"""
self._url = url
@property
def image_url(self):
"""Gets the image_url of this GetProductDetails. # noqa: E501
Absolute URL to the cover image of the product # noqa: E501
:return: The image_url of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._image_url
@image_url.setter
def image_url(self, image_url):
"""Sets the image_url of this GetProductDetails.
Absolute URL to the cover image of the product # noqa: E501
:param image_url: The image_url of this GetProductDetails. # noqa: E501
:type: str
"""
self._image_url = image_url
@property
def sku(self):
"""Gets the sku of this GetProductDetails. # noqa: E501
Product identifier from the shop # noqa: E501
:return: The sku of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._sku
@sku.setter
def sku(self, sku):
"""Sets the sku of this GetProductDetails.
Product identifier from the shop # noqa: E501
:param sku: The sku of this GetProductDetails. # noqa: E501
:type: str
"""
self._sku = sku
@property
def price(self):
"""Gets the price of this GetProductDetails. # noqa: E501
Price of the product # noqa: E501
:return: The price of this GetProductDetails. # noqa: E501
:rtype: float
"""
return self._price
@price.setter
def price(self, price):
"""Sets the price of this GetProductDetails.
Price of the product # noqa: E501
:param price: The price of this GetProductDetails. # noqa: E501
:type: float
"""
self._price = price
@property
def categories(self):
"""Gets the categories of this GetProductDetails. # noqa: E501
Category ID-s of the product # noqa: E501
:return: The categories of this GetProductDetails. # noqa: E501
:rtype: list[str]
"""
return self._categories
@categories.setter
def categories(self, categories):
"""Sets the categories of this GetProductDetails.
Category ID-s of the product # noqa: E501
:param categories: The categories of this GetProductDetails. # noqa: E501
:type: list[str]
"""
self._categories = categories
@property
def parent_id(self):
"""Gets the parent_id of this GetProductDetails. # noqa: E501
Parent product id of the product # noqa: E501
:return: The parent_id of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""Sets the parent_id of this GetProductDetails.
Parent product id of the product # noqa: E501
:param parent_id: The parent_id of this GetProductDetails. # noqa: E501
:type: str
"""
self._parent_id = parent_id
@property
def s3_original(self):
"""Gets the s3_original of this GetProductDetails. # noqa: E501
S3 url of original image # noqa: E501
:return: The s3_original of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._s3_original
@s3_original.setter
def s3_original(self, s3_original):
"""Sets the s3_original of this GetProductDetails.
S3 url of original image # noqa: E501
:param s3_original: The s3_original of this GetProductDetails. # noqa: E501
:type: str
"""
self._s3_original = s3_original
@property
def s3_thumb_analytics(self):
"""Gets the s3_thumb_analytics of this GetProductDetails. # noqa: E501
S3 thumbnail url of original image in 120x120 dimension for analytics section # noqa: E501
:return: The s3_thumb_analytics of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._s3_thumb_analytics
@s3_thumb_analytics.setter
def s3_thumb_analytics(self, s3_thumb_analytics):
"""Sets the s3_thumb_analytics of this GetProductDetails.
S3 thumbnail url of original image in 120x120 dimension for analytics section # noqa: E501
:param s3_thumb_analytics: The s3_thumb_analytics of this GetProductDetails. # noqa: E501
:type: str
"""
if s3_thumb_analytics is None:
raise ValueError("Invalid value for `s3_thumb_analytics`, must not be `None`") # noqa: E501
self._s3_thumb_analytics = s3_thumb_analytics
@property
def meta_info(self):
"""Gets the meta_info of this GetProductDetails. # noqa: E501
Meta data of product such as description, vendor, producer, stock level, etc. # noqa: E501
:return: The meta_info of this GetProductDetails. # noqa: E501
:rtype: object
"""
return self._meta_info
@meta_info.setter
def meta_info(self, meta_info):
"""Sets the meta_info of this GetProductDetails.
Meta data of product such as description, vendor, producer, stock level, etc. # noqa: E501
:param meta_info: The meta_info of this GetProductDetails. # noqa: E501
:type: object
"""
self._meta_info = meta_info
@property
def s3_thumb_editor(self):
"""Gets the s3_thumb_editor of this GetProductDetails. # noqa: E501
S3 thumbnail url of original image in 600x400 dimension for editor section # noqa: E501
:return: The s3_thumb_editor of this GetProductDetails. # noqa: E501
:rtype: str
"""
return self._s3_thumb_editor
@s3_thumb_editor.setter
def s3_thumb_editor(self, s3_thumb_editor):
"""Sets the s3_thumb_editor of this GetProductDetails.
S3 thumbnail url of original image in 600x400 dimension for editor section # noqa: E501
:param s3_thumb_editor: The s3_thumb_editor of this GetProductDetails. # noqa: E501
:type: str
"""
if s3_thumb_editor is None:
raise ValueError("Invalid value for `s3_thumb_editor`, must not be `None`") # noqa: E501
self._s3_thumb_editor = s3_thumb_editor
@property
def is_deleted(self):
"""Gets the is_deleted of this GetProductDetails. # noqa: E501
product deleted from the shop's database # noqa: E501
:return: The is_deleted of this GetProductDetails. # noqa: E501
:rtype: bool
"""
return self._is_deleted
@is_deleted.setter
def is_deleted(self, is_deleted):
"""Sets the is_deleted of this GetProductDetails.
product deleted from the shop's database # noqa: E501
:param is_deleted: The is_deleted of this GetProductDetails. # noqa: E501
:type: bool
"""
self._is_deleted = is_deleted
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(GetProductDetails, 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, GetProductDetails):
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, created_at=None, modified_at=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, s3_original=None, s3_thumb_analytics=None, meta_info=None, s3_thumb_editor=None, is_deleted=None)
|
59,303 |
sib_api_v3_sdk.models.get_product_details
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetProductDetails):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,304 |
sib_api_v3_sdk.models.get_product_details
|
__init__
|
GetProductDetails - a model defined in Swagger
|
def __init__(self, id=None, name=None, created_at=None, modified_at=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, s3_original=None, s3_thumb_analytics=None, meta_info=None, s3_thumb_editor=None, is_deleted=None): # noqa: E501
"""GetProductDetails - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._created_at = None
self._modified_at = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._s3_original = None
self._s3_thumb_analytics = None
self._meta_info = None
self._s3_thumb_editor = None
self._is_deleted = None
self.discriminator = None
self.id = id
self.name = name
self.created_at = created_at
self.modified_at = modified_at
if url is not None:
self.url = url
if image_url is not None:
self.image_url = image_url
if sku is not None:
self.sku = sku
if price is not None:
self.price = price
if categories is not None:
self.categories = categories
if parent_id is not None:
self.parent_id = parent_id
if s3_original is not None:
self.s3_original = s3_original
self.s3_thumb_analytics = s3_thumb_analytics
if meta_info is not None:
self.meta_info = meta_info
self.s3_thumb_editor = s3_thumb_editor
if is_deleted is not None:
self.is_deleted = is_deleted
|
(self, id=None, name=None, created_at=None, modified_at=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, s3_original=None, s3_thumb_analytics=None, meta_info=None, s3_thumb_editor=None, is_deleted=None)
|
59,307 |
sib_api_v3_sdk.models.get_product_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(GetProductDetails, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,309 |
sib_api_v3_sdk.models.get_products
|
GetProducts
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetProducts(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 = {
'products': 'list[object]',
'count': 'int'
}
attribute_map = {
'products': 'products',
'count': 'count'
}
def __init__(self, products=None, count=None): # noqa: E501
"""GetProducts - a model defined in Swagger""" # noqa: E501
self._products = None
self._count = None
self.discriminator = None
self.products = products
self.count = count
@property
def products(self):
"""Gets the products of this GetProducts. # noqa: E501
:return: The products of this GetProducts. # noqa: E501
:rtype: list[object]
"""
return self._products
@products.setter
def products(self, products):
"""Sets the products of this GetProducts.
:param products: The products of this GetProducts. # noqa: E501
:type: list[object]
"""
if products is None:
raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501
self._products = products
@property
def count(self):
"""Gets the count of this GetProducts. # noqa: E501
Number of products # noqa: E501
:return: The count of this GetProducts. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetProducts.
Number of products # noqa: E501
:param count: The count of this GetProducts. # 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(GetProducts, 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, GetProducts):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(products=None, count=None)
|
59,310 |
sib_api_v3_sdk.models.get_products
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetProducts):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,311 |
sib_api_v3_sdk.models.get_products
|
__init__
|
GetProducts - a model defined in Swagger
|
def __init__(self, products=None, count=None): # noqa: E501
"""GetProducts - a model defined in Swagger""" # noqa: E501
self._products = None
self._count = None
self.discriminator = None
self.products = products
self.count = count
|
(self, products=None, count=None)
|
59,314 |
sib_api_v3_sdk.models.get_products
|
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(GetProducts, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,316 |
sib_api_v3_sdk.models.get_reports
|
GetReports
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetReports(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 = {
'reports': 'list[GetReportsReports]'
}
attribute_map = {
'reports': 'reports'
}
def __init__(self, reports=None): # noqa: E501
"""GetReports - a model defined in Swagger""" # noqa: E501
self._reports = None
self.discriminator = None
if reports is not None:
self.reports = reports
@property
def reports(self):
"""Gets the reports of this GetReports. # noqa: E501
:return: The reports of this GetReports. # noqa: E501
:rtype: list[GetReportsReports]
"""
return self._reports
@reports.setter
def reports(self, reports):
"""Sets the reports of this GetReports.
:param reports: The reports of this GetReports. # noqa: E501
:type: list[GetReportsReports]
"""
self._reports = reports
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(GetReports, 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, GetReports):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(reports=None)
|
59,317 |
sib_api_v3_sdk.models.get_reports
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetReports):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,318 |
sib_api_v3_sdk.models.get_reports
|
__init__
|
GetReports - a model defined in Swagger
|
def __init__(self, reports=None): # noqa: E501
"""GetReports - a model defined in Swagger""" # noqa: E501
self._reports = None
self.discriminator = None
if reports is not None:
self.reports = reports
|
(self, reports=None)
|
59,321 |
sib_api_v3_sdk.models.get_reports
|
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(GetReports, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,323 |
sib_api_v3_sdk.models.get_reports_reports
|
GetReportsReports
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetReportsReports(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 = {
'_date': 'date',
'requests': 'int',
'delivered': 'int',
'hard_bounces': 'int',
'soft_bounces': 'int',
'clicks': 'int',
'unique_clicks': 'int',
'opens': 'int',
'unique_opens': 'int',
'spam_reports': 'int',
'blocked': 'int',
'invalid': 'int',
'unsubscribed': 'int'
}
attribute_map = {
'_date': 'date',
'requests': 'requests',
'delivered': 'delivered',
'hard_bounces': 'hardBounces',
'soft_bounces': 'softBounces',
'clicks': 'clicks',
'unique_clicks': 'uniqueClicks',
'opens': 'opens',
'unique_opens': 'uniqueOpens',
'spam_reports': 'spamReports',
'blocked': 'blocked',
'invalid': 'invalid',
'unsubscribed': 'unsubscribed'
}
def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501
"""GetReportsReports - a model defined in Swagger""" # noqa: E501
self.__date = None
self._requests = None
self._delivered = None
self._hard_bounces = None
self._soft_bounces = None
self._clicks = None
self._unique_clicks = None
self._opens = None
self._unique_opens = None
self._spam_reports = None
self._blocked = None
self._invalid = None
self._unsubscribed = None
self.discriminator = None
self._date = _date
self.requests = requests
self.delivered = delivered
self.hard_bounces = hard_bounces
self.soft_bounces = soft_bounces
self.clicks = clicks
self.unique_clicks = unique_clicks
self.opens = opens
self.unique_opens = unique_opens
self.spam_reports = spam_reports
self.blocked = blocked
self.invalid = invalid
self.unsubscribed = unsubscribed
@property
def _date(self):
"""Gets the _date of this GetReportsReports. # noqa: E501
Date of the statistics # noqa: E501
:return: The _date of this GetReportsReports. # noqa: E501
:rtype: date
"""
return self.__date
@_date.setter
def _date(self, _date):
"""Sets the _date of this GetReportsReports.
Date of the statistics # noqa: E501
:param _date: The _date of this GetReportsReports. # noqa: E501
:type: date
"""
if _date is None:
raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501
self.__date = _date
@property
def requests(self):
"""Gets the requests of this GetReportsReports. # noqa: E501
Number of requests for the date # noqa: E501
:return: The requests of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._requests
@requests.setter
def requests(self, requests):
"""Sets the requests of this GetReportsReports.
Number of requests for the date # noqa: E501
:param requests: The requests of this GetReportsReports. # noqa: E501
:type: int
"""
if requests is None:
raise ValueError("Invalid value for `requests`, must not be `None`") # noqa: E501
self._requests = requests
@property
def delivered(self):
"""Gets the delivered of this GetReportsReports. # noqa: E501
Number of delivered emails for the date # noqa: E501
:return: The delivered of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._delivered
@delivered.setter
def delivered(self, delivered):
"""Sets the delivered of this GetReportsReports.
Number of delivered emails for the date # noqa: E501
:param delivered: The delivered of this GetReportsReports. # noqa: E501
:type: int
"""
if delivered is None:
raise ValueError("Invalid value for `delivered`, must not be `None`") # noqa: E501
self._delivered = delivered
@property
def hard_bounces(self):
"""Gets the hard_bounces of this GetReportsReports. # noqa: E501
Number of hardbounces for the date # noqa: E501
:return: The hard_bounces of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._hard_bounces
@hard_bounces.setter
def hard_bounces(self, hard_bounces):
"""Sets the hard_bounces of this GetReportsReports.
Number of hardbounces for the date # noqa: E501
:param hard_bounces: The hard_bounces of this GetReportsReports. # noqa: E501
:type: int
"""
if hard_bounces is None:
raise ValueError("Invalid value for `hard_bounces`, must not be `None`") # noqa: E501
self._hard_bounces = hard_bounces
@property
def soft_bounces(self):
"""Gets the soft_bounces of this GetReportsReports. # noqa: E501
Number of softbounces for the date # noqa: E501
:return: The soft_bounces of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._soft_bounces
@soft_bounces.setter
def soft_bounces(self, soft_bounces):
"""Sets the soft_bounces of this GetReportsReports.
Number of softbounces for the date # noqa: E501
:param soft_bounces: The soft_bounces of this GetReportsReports. # noqa: E501
:type: int
"""
if soft_bounces is None:
raise ValueError("Invalid value for `soft_bounces`, must not be `None`") # noqa: E501
self._soft_bounces = soft_bounces
@property
def clicks(self):
"""Gets the clicks of this GetReportsReports. # noqa: E501
Number of clicks for the date # noqa: E501
:return: The clicks of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._clicks
@clicks.setter
def clicks(self, clicks):
"""Sets the clicks of this GetReportsReports.
Number of clicks for the date # noqa: E501
:param clicks: The clicks of this GetReportsReports. # noqa: E501
:type: int
"""
if clicks is None:
raise ValueError("Invalid value for `clicks`, must not be `None`") # noqa: E501
self._clicks = clicks
@property
def unique_clicks(self):
"""Gets the unique_clicks of this GetReportsReports. # noqa: E501
Number of unique clicks for the date # noqa: E501
:return: The unique_clicks of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._unique_clicks
@unique_clicks.setter
def unique_clicks(self, unique_clicks):
"""Sets the unique_clicks of this GetReportsReports.
Number of unique clicks for the date # noqa: E501
:param unique_clicks: The unique_clicks of this GetReportsReports. # 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 opens(self):
"""Gets the opens of this GetReportsReports. # noqa: E501
Number of openings for the date # noqa: E501
:return: The opens of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._opens
@opens.setter
def opens(self, opens):
"""Sets the opens of this GetReportsReports.
Number of openings for the date # noqa: E501
:param opens: The opens of this GetReportsReports. # noqa: E501
:type: int
"""
if opens is None:
raise ValueError("Invalid value for `opens`, must not be `None`") # noqa: E501
self._opens = opens
@property
def unique_opens(self):
"""Gets the unique_opens of this GetReportsReports. # noqa: E501
Number of unique openings for the date # noqa: E501
:return: The unique_opens of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._unique_opens
@unique_opens.setter
def unique_opens(self, unique_opens):
"""Sets the unique_opens of this GetReportsReports.
Number of unique openings for the date # noqa: E501
:param unique_opens: The unique_opens of this GetReportsReports. # noqa: E501
:type: int
"""
if unique_opens is None:
raise ValueError("Invalid value for `unique_opens`, must not be `None`") # noqa: E501
self._unique_opens = unique_opens
@property
def spam_reports(self):
"""Gets the spam_reports of this GetReportsReports. # noqa: E501
Number of complaints (spam reports) for the date # noqa: E501
:return: The spam_reports of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._spam_reports
@spam_reports.setter
def spam_reports(self, spam_reports):
"""Sets the spam_reports of this GetReportsReports.
Number of complaints (spam reports) for the date # noqa: E501
:param spam_reports: The spam_reports of this GetReportsReports. # noqa: E501
:type: int
"""
if spam_reports is None:
raise ValueError("Invalid value for `spam_reports`, must not be `None`") # noqa: E501
self._spam_reports = spam_reports
@property
def blocked(self):
"""Gets the blocked of this GetReportsReports. # noqa: E501
Number of blocked emails for the date # noqa: E501
:return: The blocked of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._blocked
@blocked.setter
def blocked(self, blocked):
"""Sets the blocked of this GetReportsReports.
Number of blocked emails for the date # noqa: E501
:param blocked: The blocked of this GetReportsReports. # noqa: E501
:type: int
"""
if blocked is None:
raise ValueError("Invalid value for `blocked`, must not be `None`") # noqa: E501
self._blocked = blocked
@property
def invalid(self):
"""Gets the invalid of this GetReportsReports. # noqa: E501
Number of invalid emails for the date # noqa: E501
:return: The invalid of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._invalid
@invalid.setter
def invalid(self, invalid):
"""Sets the invalid of this GetReportsReports.
Number of invalid emails for the date # noqa: E501
:param invalid: The invalid of this GetReportsReports. # noqa: E501
:type: int
"""
if invalid is None:
raise ValueError("Invalid value for `invalid`, must not be `None`") # noqa: E501
self._invalid = invalid
@property
def unsubscribed(self):
"""Gets the unsubscribed of this GetReportsReports. # noqa: E501
Number of unsubscribed emails for the date # noqa: E501
:return: The unsubscribed of this GetReportsReports. # noqa: E501
:rtype: int
"""
return self._unsubscribed
@unsubscribed.setter
def unsubscribed(self, unsubscribed):
"""Sets the unsubscribed of this GetReportsReports.
Number of unsubscribed emails for the date # noqa: E501
:param unsubscribed: The unsubscribed of this GetReportsReports. # noqa: E501
:type: int
"""
if unsubscribed is None:
raise ValueError("Invalid value for `unsubscribed`, must not be `None`") # noqa: E501
self._unsubscribed = unsubscribed
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(GetReportsReports, 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, GetReportsReports):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(_date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None)
|
59,324 |
sib_api_v3_sdk.models.get_reports_reports
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetReportsReports):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,325 |
sib_api_v3_sdk.models.get_reports_reports
|
__init__
|
GetReportsReports - a model defined in Swagger
|
def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501
"""GetReportsReports - a model defined in Swagger""" # noqa: E501
self.__date = None
self._requests = None
self._delivered = None
self._hard_bounces = None
self._soft_bounces = None
self._clicks = None
self._unique_clicks = None
self._opens = None
self._unique_opens = None
self._spam_reports = None
self._blocked = None
self._invalid = None
self._unsubscribed = None
self.discriminator = None
self._date = _date
self.requests = requests
self.delivered = delivered
self.hard_bounces = hard_bounces
self.soft_bounces = soft_bounces
self.clicks = clicks
self.unique_clicks = unique_clicks
self.opens = opens
self.unique_opens = unique_opens
self.spam_reports = spam_reports
self.blocked = blocked
self.invalid = invalid
self.unsubscribed = unsubscribed
|
(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None)
|
59,328 |
sib_api_v3_sdk.models.get_reports_reports
|
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(GetReportsReports, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,330 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id
|
GetScheduledEmailByBatchId
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetScheduledEmailByBatchId(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 = {
'count': 'int',
'batches': 'list[GetScheduledEmailByBatchIdBatches]'
}
attribute_map = {
'count': 'count',
'batches': 'batches'
}
def __init__(self, count=None, batches=None): # noqa: E501
"""GetScheduledEmailByBatchId - a model defined in Swagger""" # noqa: E501
self._count = None
self._batches = None
self.discriminator = None
if count is not None:
self.count = count
if batches is not None:
self.batches = batches
@property
def count(self):
"""Gets the count of this GetScheduledEmailByBatchId. # noqa: E501
Total number of batches # noqa: E501
:return: The count of this GetScheduledEmailByBatchId. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetScheduledEmailByBatchId.
Total number of batches # noqa: E501
:param count: The count of this GetScheduledEmailByBatchId. # noqa: E501
:type: int
"""
self._count = count
@property
def batches(self):
"""Gets the batches of this GetScheduledEmailByBatchId. # noqa: E501
:return: The batches of this GetScheduledEmailByBatchId. # noqa: E501
:rtype: list[GetScheduledEmailByBatchIdBatches]
"""
return self._batches
@batches.setter
def batches(self, batches):
"""Sets the batches of this GetScheduledEmailByBatchId.
:param batches: The batches of this GetScheduledEmailByBatchId. # noqa: E501
:type: list[GetScheduledEmailByBatchIdBatches]
"""
self._batches = batches
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(GetScheduledEmailByBatchId, 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, GetScheduledEmailByBatchId):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(count=None, batches=None)
|
59,331 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetScheduledEmailByBatchId):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,332 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id
|
__init__
|
GetScheduledEmailByBatchId - a model defined in Swagger
|
def __init__(self, count=None, batches=None): # noqa: E501
"""GetScheduledEmailByBatchId - a model defined in Swagger""" # noqa: E501
self._count = None
self._batches = None
self.discriminator = None
if count is not None:
self.count = count
if batches is not None:
self.batches = batches
|
(self, count=None, batches=None)
|
59,335 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id
|
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(GetScheduledEmailByBatchId, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,337 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id_batches
|
GetScheduledEmailByBatchIdBatches
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetScheduledEmailByBatchIdBatches(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 = {
'scheduled_at': 'datetime',
'created_at': 'datetime',
'status': 'str'
}
attribute_map = {
'scheduled_at': 'scheduledAt',
'created_at': 'createdAt',
'status': 'status'
}
def __init__(self, scheduled_at=None, created_at=None, status=None): # noqa: E501
"""GetScheduledEmailByBatchIdBatches - a model defined in Swagger""" # noqa: E501
self._scheduled_at = None
self._created_at = None
self._status = None
self.discriminator = None
self.scheduled_at = scheduled_at
self.created_at = created_at
self.status = status
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
Datetime for which the batch was scheduled # noqa: E501
:return: The scheduled_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:rtype: datetime
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetScheduledEmailByBatchIdBatches.
Datetime for which the batch was scheduled # noqa: E501
:param scheduled_at: The scheduled_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:type: datetime
"""
if scheduled_at is None:
raise ValueError("Invalid value for `scheduled_at`, must not be `None`") # noqa: E501
self._scheduled_at = scheduled_at
@property
def created_at(self):
"""Gets the created_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
Datetime on which the batch was scheduled # noqa: E501
:return: The created_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:rtype: datetime
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetScheduledEmailByBatchIdBatches.
Datetime on which the batch was scheduled # noqa: E501
:param created_at: The created_at of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:type: datetime
"""
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 status(self):
"""Gets the status of this GetScheduledEmailByBatchIdBatches. # noqa: E501
Current status of the scheduled batch # noqa: E501
:return: The status of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetScheduledEmailByBatchIdBatches.
Current status of the scheduled batch # noqa: E501
:param status: The status of this GetScheduledEmailByBatchIdBatches. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["inProgress", "queued", "processed", "error"] # 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
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(GetScheduledEmailByBatchIdBatches, 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, GetScheduledEmailByBatchIdBatches):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(scheduled_at=None, created_at=None, status=None)
|
59,338 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id_batches
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetScheduledEmailByBatchIdBatches):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,339 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id_batches
|
__init__
|
GetScheduledEmailByBatchIdBatches - a model defined in Swagger
|
def __init__(self, scheduled_at=None, created_at=None, status=None): # noqa: E501
"""GetScheduledEmailByBatchIdBatches - a model defined in Swagger""" # noqa: E501
self._scheduled_at = None
self._created_at = None
self._status = None
self.discriminator = None
self.scheduled_at = scheduled_at
self.created_at = created_at
self.status = status
|
(self, scheduled_at=None, created_at=None, status=None)
|
59,342 |
sib_api_v3_sdk.models.get_scheduled_email_by_batch_id_batches
|
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(GetScheduledEmailByBatchIdBatches, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,344 |
sib_api_v3_sdk.models.get_scheduled_email_by_message_id
|
GetScheduledEmailByMessageId
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetScheduledEmailByMessageId(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 = {
'scheduled_at': 'datetime',
'created_at': 'datetime',
'status': 'str'
}
attribute_map = {
'scheduled_at': 'scheduledAt',
'created_at': 'createdAt',
'status': 'status'
}
def __init__(self, scheduled_at=None, created_at=None, status=None): # noqa: E501
"""GetScheduledEmailByMessageId - a model defined in Swagger""" # noqa: E501
self._scheduled_at = None
self._created_at = None
self._status = None
self.discriminator = None
self.scheduled_at = scheduled_at
self.created_at = created_at
self.status = status
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetScheduledEmailByMessageId. # noqa: E501
Datetime for which the email was scheduled # noqa: E501
:return: The scheduled_at of this GetScheduledEmailByMessageId. # noqa: E501
:rtype: datetime
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetScheduledEmailByMessageId.
Datetime for which the email was scheduled # noqa: E501
:param scheduled_at: The scheduled_at of this GetScheduledEmailByMessageId. # noqa: E501
:type: datetime
"""
if scheduled_at is None:
raise ValueError("Invalid value for `scheduled_at`, must not be `None`") # noqa: E501
self._scheduled_at = scheduled_at
@property
def created_at(self):
"""Gets the created_at of this GetScheduledEmailByMessageId. # noqa: E501
Datetime on which the email was scheduled # noqa: E501
:return: The created_at of this GetScheduledEmailByMessageId. # noqa: E501
:rtype: datetime
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetScheduledEmailByMessageId.
Datetime on which the email was scheduled # noqa: E501
:param created_at: The created_at of this GetScheduledEmailByMessageId. # noqa: E501
:type: datetime
"""
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 status(self):
"""Gets the status of this GetScheduledEmailByMessageId. # noqa: E501
Current status of the scheduled email # noqa: E501
:return: The status of this GetScheduledEmailByMessageId. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetScheduledEmailByMessageId.
Current status of the scheduled email # noqa: E501
:param status: The status of this GetScheduledEmailByMessageId. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
allowed_values = ["inProgress", "queued", "processed", "error"] # 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
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(GetScheduledEmailByMessageId, 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, GetScheduledEmailByMessageId):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(scheduled_at=None, created_at=None, status=None)
|
59,345 |
sib_api_v3_sdk.models.get_scheduled_email_by_message_id
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetScheduledEmailByMessageId):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,346 |
sib_api_v3_sdk.models.get_scheduled_email_by_message_id
|
__init__
|
GetScheduledEmailByMessageId - a model defined in Swagger
|
def __init__(self, scheduled_at=None, created_at=None, status=None): # noqa: E501
"""GetScheduledEmailByMessageId - a model defined in Swagger""" # noqa: E501
self._scheduled_at = None
self._created_at = None
self._status = None
self.discriminator = None
self.scheduled_at = scheduled_at
self.created_at = created_at
self.status = status
|
(self, scheduled_at=None, created_at=None, status=None)
|
59,349 |
sib_api_v3_sdk.models.get_scheduled_email_by_message_id
|
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(GetScheduledEmailByMessageId, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,351 |
sib_api_v3_sdk.models.get_senders_list
|
GetSendersList
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSendersList(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 = {
'senders': 'list[GetSendersListSenders]'
}
attribute_map = {
'senders': 'senders'
}
def __init__(self, senders=None): # noqa: E501
"""GetSendersList - a model defined in Swagger""" # noqa: E501
self._senders = None
self.discriminator = None
if senders is not None:
self.senders = senders
@property
def senders(self):
"""Gets the senders of this GetSendersList. # noqa: E501
List of the senders available in your account # noqa: E501
:return: The senders of this GetSendersList. # noqa: E501
:rtype: list[GetSendersListSenders]
"""
return self._senders
@senders.setter
def senders(self, senders):
"""Sets the senders of this GetSendersList.
List of the senders available in your account # noqa: E501
:param senders: The senders of this GetSendersList. # noqa: E501
:type: list[GetSendersListSenders]
"""
self._senders = senders
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(GetSendersList, 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, GetSendersList):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(senders=None)
|
59,352 |
sib_api_v3_sdk.models.get_senders_list
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSendersList):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,353 |
sib_api_v3_sdk.models.get_senders_list
|
__init__
|
GetSendersList - a model defined in Swagger
|
def __init__(self, senders=None): # noqa: E501
"""GetSendersList - a model defined in Swagger""" # noqa: E501
self._senders = None
self.discriminator = None
if senders is not None:
self.senders = senders
|
(self, senders=None)
|
59,356 |
sib_api_v3_sdk.models.get_senders_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(GetSendersList, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,358 |
sib_api_v3_sdk.models.get_senders_list_ips
|
GetSendersListIps
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSendersListIps(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 = {
'ip': 'str',
'domain': 'str',
'weight': 'int'
}
attribute_map = {
'ip': 'ip',
'domain': 'domain',
'weight': 'weight'
}
def __init__(self, ip=None, domain=None, weight=None): # noqa: E501
"""GetSendersListIps - a model defined in Swagger""" # noqa: E501
self._ip = None
self._domain = None
self._weight = None
self.discriminator = None
self.ip = ip
self.domain = domain
self.weight = weight
@property
def ip(self):
"""Gets the ip of this GetSendersListIps. # noqa: E501
Dedicated IP available in your account # noqa: E501
:return: The ip of this GetSendersListIps. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this GetSendersListIps.
Dedicated IP available in your account # noqa: E501
:param ip: The ip of this GetSendersListIps. # noqa: E501
:type: str
"""
if ip is None:
raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501
self._ip = ip
@property
def domain(self):
"""Gets the domain of this GetSendersListIps. # noqa: E501
Domain of the IP # noqa: E501
:return: The domain of this GetSendersListIps. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this GetSendersListIps.
Domain of the IP # noqa: E501
:param domain: The domain of this GetSendersListIps. # noqa: E501
:type: str
"""
if domain is None:
raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501
self._domain = domain
@property
def weight(self):
"""Gets the weight of this GetSendersListIps. # noqa: E501
Weight of the IP for this sender # noqa: E501
:return: The weight of this GetSendersListIps. # noqa: E501
:rtype: int
"""
return self._weight
@weight.setter
def weight(self, weight):
"""Sets the weight of this GetSendersListIps.
Weight of the IP for this sender # noqa: E501
:param weight: The weight of this GetSendersListIps. # noqa: E501
:type: int
"""
if weight is None:
raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501
self._weight = weight
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(GetSendersListIps, 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, GetSendersListIps):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(ip=None, domain=None, weight=None)
|
59,359 |
sib_api_v3_sdk.models.get_senders_list_ips
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSendersListIps):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,360 |
sib_api_v3_sdk.models.get_senders_list_ips
|
__init__
|
GetSendersListIps - a model defined in Swagger
|
def __init__(self, ip=None, domain=None, weight=None): # noqa: E501
"""GetSendersListIps - a model defined in Swagger""" # noqa: E501
self._ip = None
self._domain = None
self._weight = None
self.discriminator = None
self.ip = ip
self.domain = domain
self.weight = weight
|
(self, ip=None, domain=None, weight=None)
|
59,363 |
sib_api_v3_sdk.models.get_senders_list_ips
|
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(GetSendersListIps, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,365 |
sib_api_v3_sdk.models.get_senders_list_senders
|
GetSendersListSenders
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSendersListSenders(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',
'email': 'str',
'active': 'bool',
'ips': 'list[GetSendersListIps]'
}
attribute_map = {
'id': 'id',
'name': 'name',
'email': 'email',
'active': 'active',
'ips': 'ips'
}
def __init__(self, id=None, name=None, email=None, active=None, ips=None): # noqa: E501
"""GetSendersListSenders - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._email = None
self._active = None
self._ips = None
self.discriminator = None
self.id = id
self.name = name
self.email = email
self.active = active
if ips is not None:
self.ips = ips
@property
def id(self):
"""Gets the id of this GetSendersListSenders. # noqa: E501
Id of the sender # noqa: E501
:return: The id of this GetSendersListSenders. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetSendersListSenders.
Id of the sender # noqa: E501
:param id: The id of this GetSendersListSenders. # 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 GetSendersListSenders. # noqa: E501
From Name associated to the sender # noqa: E501
:return: The name of this GetSendersListSenders. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetSendersListSenders.
From Name associated to the sender # noqa: E501
:param name: The name of this GetSendersListSenders. # 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 email(self):
"""Gets the email of this GetSendersListSenders. # noqa: E501
From Email associated to the sender # noqa: E501
:return: The email of this GetSendersListSenders. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this GetSendersListSenders.
From Email associated to the sender # noqa: E501
:param email: The email of this GetSendersListSenders. # 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 active(self):
"""Gets the active of this GetSendersListSenders. # noqa: E501
Status of sender (true=activated, false=deactivated) # noqa: E501
:return: The active of this GetSendersListSenders. # noqa: E501
:rtype: bool
"""
return self._active
@active.setter
def active(self, active):
"""Sets the active of this GetSendersListSenders.
Status of sender (true=activated, false=deactivated) # noqa: E501
:param active: The active of this GetSendersListSenders. # noqa: E501
:type: bool
"""
if active is None:
raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501
self._active = active
@property
def ips(self):
"""Gets the ips of this GetSendersListSenders. # noqa: E501
List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs # noqa: E501
:return: The ips of this GetSendersListSenders. # noqa: E501
:rtype: list[GetSendersListIps]
"""
return self._ips
@ips.setter
def ips(self, ips):
"""Sets the ips of this GetSendersListSenders.
List of dedicated IP(s) available in the account. This data is displayed only for dedicated IPs # noqa: E501
:param ips: The ips of this GetSendersListSenders. # noqa: E501
:type: list[GetSendersListIps]
"""
self._ips = ips
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(GetSendersListSenders, 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, GetSendersListSenders):
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, email=None, active=None, ips=None)
|
59,366 |
sib_api_v3_sdk.models.get_senders_list_senders
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSendersListSenders):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,367 |
sib_api_v3_sdk.models.get_senders_list_senders
|
__init__
|
GetSendersListSenders - a model defined in Swagger
|
def __init__(self, id=None, name=None, email=None, active=None, ips=None): # noqa: E501
"""GetSendersListSenders - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._email = None
self._active = None
self._ips = None
self.discriminator = None
self.id = id
self.name = name
self.email = email
self.active = active
if ips is not None:
self.ips = ips
|
(self, id=None, name=None, email=None, active=None, ips=None)
|
59,370 |
sib_api_v3_sdk.models.get_senders_list_senders
|
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(GetSendersListSenders, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,372 |
sib_api_v3_sdk.models.get_shared_template_url
|
GetSharedTemplateUrl
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSharedTemplateUrl(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 = {
'shared_url': 'str'
}
attribute_map = {
'shared_url': 'sharedUrl'
}
def __init__(self, shared_url=None): # noqa: E501
"""GetSharedTemplateUrl - a model defined in Swagger""" # noqa: E501
self._shared_url = None
self.discriminator = None
self.shared_url = shared_url
@property
def shared_url(self):
"""Gets the shared_url of this GetSharedTemplateUrl. # noqa: E501
A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users. # noqa: E501
:return: The shared_url of this GetSharedTemplateUrl. # noqa: E501
:rtype: str
"""
return self._shared_url
@shared_url.setter
def shared_url(self, shared_url):
"""Sets the shared_url of this GetSharedTemplateUrl.
A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users. # noqa: E501
:param shared_url: The shared_url of this GetSharedTemplateUrl. # noqa: E501
:type: str
"""
if shared_url is None:
raise ValueError("Invalid value for `shared_url`, must not be `None`") # noqa: E501
self._shared_url = shared_url
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(GetSharedTemplateUrl, 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, GetSharedTemplateUrl):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(shared_url=None)
|
59,373 |
sib_api_v3_sdk.models.get_shared_template_url
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSharedTemplateUrl):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,374 |
sib_api_v3_sdk.models.get_shared_template_url
|
__init__
|
GetSharedTemplateUrl - a model defined in Swagger
|
def __init__(self, shared_url=None): # noqa: E501
"""GetSharedTemplateUrl - a model defined in Swagger""" # noqa: E501
self._shared_url = None
self.discriminator = None
self.shared_url = shared_url
|
(self, shared_url=None)
|
59,377 |
sib_api_v3_sdk.models.get_shared_template_url
|
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(GetSharedTemplateUrl, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,379 |
sib_api_v3_sdk.models.get_sms_campaign
|
GetSmsCampaign
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsCampaign(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',
'status': 'str',
'content': 'str',
'scheduled_at': 'str',
'sender': 'str',
'created_at': 'str',
'modified_at': 'str',
'recipients': 'object',
'statistics': 'object'
}
attribute_map = {
'id': 'id',
'name': 'name',
'status': 'status',
'content': 'content',
'scheduled_at': 'scheduledAt',
'sender': 'sender',
'created_at': 'createdAt',
'modified_at': 'modifiedAt',
'recipients': 'recipients',
'statistics': 'statistics'
}
def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None): # noqa: E501
"""GetSmsCampaign - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._status = None
self._content = None
self._scheduled_at = None
self._sender = None
self._created_at = None
self._modified_at = None
self._recipients = None
self._statistics = None
self.discriminator = None
self.id = id
self.name = name
self.status = status
self.content = content
if scheduled_at is not None:
self.scheduled_at = scheduled_at
self.sender = sender
self.created_at = created_at
self.modified_at = modified_at
self.recipients = recipients
self.statistics = statistics
@property
def id(self):
"""Gets the id of this GetSmsCampaign. # noqa: E501
ID of the SMS Campaign # noqa: E501
:return: The id of this GetSmsCampaign. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetSmsCampaign.
ID of the SMS Campaign # noqa: E501
:param id: The id of this GetSmsCampaign. # 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 GetSmsCampaign. # noqa: E501
Name of the SMS Campaign # noqa: E501
:return: The name of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetSmsCampaign.
Name of the SMS Campaign # noqa: E501
:param name: The name of this GetSmsCampaign. # 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 status(self):
"""Gets the status of this GetSmsCampaign. # noqa: E501
Status of the SMS Campaign # noqa: E501
:return: The status of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetSmsCampaign.
Status of the SMS Campaign # noqa: E501
:param status: The status of this GetSmsCampaign. # 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", "inProcess"] # 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 content(self):
"""Gets the content of this GetSmsCampaign. # noqa: E501
Content of the SMS Campaign # noqa: E501
:return: The content of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this GetSmsCampaign.
Content of the SMS Campaign # noqa: E501
:param content: The content of this GetSmsCampaign. # noqa: E501
:type: str
"""
if content is None:
raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
self._content = content
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetSmsCampaign. # noqa: E501
UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501
:return: The scheduled_at of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetSmsCampaign.
UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501
:param scheduled_at: The scheduled_at of this GetSmsCampaign. # noqa: E501
:type: str
"""
self._scheduled_at = scheduled_at
@property
def sender(self):
"""Gets the sender of this GetSmsCampaign. # noqa: E501
Sender of the SMS Campaign # noqa: E501
:return: The sender of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this GetSmsCampaign.
Sender of the SMS Campaign # noqa: E501
:param sender: The sender of this GetSmsCampaign. # noqa: E501
:type: str
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
self._sender = sender
@property
def created_at(self):
"""Gets the created_at of this GetSmsCampaign. # noqa: E501
Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetSmsCampaign.
Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetSmsCampaign. # 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 GetSmsCampaign. # noqa: E501
UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetSmsCampaign. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetSmsCampaign.
UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetSmsCampaign. # 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 recipients(self):
"""Gets the recipients of this GetSmsCampaign. # noqa: E501
:return: The recipients of this GetSmsCampaign. # noqa: E501
:rtype: object
"""
return self._recipients
@recipients.setter
def recipients(self, recipients):
"""Sets the recipients of this GetSmsCampaign.
:param recipients: The recipients of this GetSmsCampaign. # 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 GetSmsCampaign. # noqa: E501
:return: The statistics of this GetSmsCampaign. # noqa: E501
:rtype: object
"""
return self._statistics
@statistics.setter
def statistics(self, statistics):
"""Sets the statistics of this GetSmsCampaign.
:param statistics: The statistics of this GetSmsCampaign. # 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(GetSmsCampaign, 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, GetSmsCampaign):
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, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None)
|
59,380 |
sib_api_v3_sdk.models.get_sms_campaign
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSmsCampaign):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,381 |
sib_api_v3_sdk.models.get_sms_campaign
|
__init__
|
GetSmsCampaign - a model defined in Swagger
|
def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None): # noqa: E501
"""GetSmsCampaign - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._status = None
self._content = None
self._scheduled_at = None
self._sender = None
self._created_at = None
self._modified_at = None
self._recipients = None
self._statistics = None
self.discriminator = None
self.id = id
self.name = name
self.status = status
self.content = content
if scheduled_at is not None:
self.scheduled_at = scheduled_at
self.sender = sender
self.created_at = created_at
self.modified_at = modified_at
self.recipients = recipients
self.statistics = statistics
|
(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None)
|
59,384 |
sib_api_v3_sdk.models.get_sms_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(GetSmsCampaign, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,386 |
sib_api_v3_sdk.models.get_sms_campaign_overview
|
GetSmsCampaignOverview
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsCampaignOverview(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',
'status': 'str',
'content': 'str',
'scheduled_at': 'str',
'sender': 'str',
'created_at': 'str',
'modified_at': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'status': 'status',
'content': 'content',
'scheduled_at': 'scheduledAt',
'sender': 'sender',
'created_at': 'createdAt',
'modified_at': 'modifiedAt'
}
def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None): # noqa: E501
"""GetSmsCampaignOverview - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._status = None
self._content = None
self._scheduled_at = None
self._sender = None
self._created_at = None
self._modified_at = None
self.discriminator = None
self.id = id
self.name = name
self.status = status
self.content = content
if scheduled_at is not None:
self.scheduled_at = scheduled_at
self.sender = sender
self.created_at = created_at
self.modified_at = modified_at
@property
def id(self):
"""Gets the id of this GetSmsCampaignOverview. # noqa: E501
ID of the SMS Campaign # noqa: E501
:return: The id of this GetSmsCampaignOverview. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this GetSmsCampaignOverview.
ID of the SMS Campaign # noqa: E501
:param id: The id of this GetSmsCampaignOverview. # 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 GetSmsCampaignOverview. # noqa: E501
Name of the SMS Campaign # noqa: E501
:return: The name of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this GetSmsCampaignOverview.
Name of the SMS Campaign # noqa: E501
:param name: The name of this GetSmsCampaignOverview. # 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 status(self):
"""Gets the status of this GetSmsCampaignOverview. # noqa: E501
Status of the SMS Campaign # noqa: E501
:return: The status of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this GetSmsCampaignOverview.
Status of the SMS Campaign # noqa: E501
:param status: The status of this GetSmsCampaignOverview. # 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", "inProcess"] # 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 content(self):
"""Gets the content of this GetSmsCampaignOverview. # noqa: E501
Content of the SMS Campaign # noqa: E501
:return: The content of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this GetSmsCampaignOverview.
Content of the SMS Campaign # noqa: E501
:param content: The content of this GetSmsCampaignOverview. # noqa: E501
:type: str
"""
if content is None:
raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
self._content = content
@property
def scheduled_at(self):
"""Gets the scheduled_at of this GetSmsCampaignOverview. # noqa: E501
UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501
:return: The scheduled_at of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this GetSmsCampaignOverview.
UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501
:param scheduled_at: The scheduled_at of this GetSmsCampaignOverview. # noqa: E501
:type: str
"""
self._scheduled_at = scheduled_at
@property
def sender(self):
"""Gets the sender of this GetSmsCampaignOverview. # noqa: E501
Sender of the SMS Campaign # noqa: E501
:return: The sender of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this GetSmsCampaignOverview.
Sender of the SMS Campaign # noqa: E501
:param sender: The sender of this GetSmsCampaignOverview. # noqa: E501
:type: str
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
self._sender = sender
@property
def created_at(self):
"""Gets the created_at of this GetSmsCampaignOverview. # noqa: E501
Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The created_at of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this GetSmsCampaignOverview.
Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param created_at: The created_at of this GetSmsCampaignOverview. # 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 GetSmsCampaignOverview. # noqa: E501
UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:return: The modified_at of this GetSmsCampaignOverview. # noqa: E501
:rtype: str
"""
return self._modified_at
@modified_at.setter
def modified_at(self, modified_at):
"""Sets the modified_at of this GetSmsCampaignOverview.
UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501
:param modified_at: The modified_at of this GetSmsCampaignOverview. # 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
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(GetSmsCampaignOverview, 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, GetSmsCampaignOverview):
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, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None)
|
59,387 |
sib_api_v3_sdk.models.get_sms_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, GetSmsCampaignOverview):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,388 |
sib_api_v3_sdk.models.get_sms_campaign_overview
|
__init__
|
GetSmsCampaignOverview - a model defined in Swagger
|
def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None): # noqa: E501
"""GetSmsCampaignOverview - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._status = None
self._content = None
self._scheduled_at = None
self._sender = None
self._created_at = None
self._modified_at = None
self.discriminator = None
self.id = id
self.name = name
self.status = status
self.content = content
if scheduled_at is not None:
self.scheduled_at = scheduled_at
self.sender = sender
self.created_at = created_at
self.modified_at = modified_at
|
(self, id=None, name=None, status=None, content=None, scheduled_at=None, sender=None, created_at=None, modified_at=None)
|
59,391 |
sib_api_v3_sdk.models.get_sms_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(GetSmsCampaignOverview, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,393 |
sib_api_v3_sdk.models.get_sms_campaign_stats
|
GetSmsCampaignStats
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsCampaignStats(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 = {
'delivered': 'int',
'sent': 'int',
'processing': 'int',
'soft_bounces': 'int',
'hard_bounces': 'int',
'unsubscriptions': 'int',
'answered': 'int'
}
attribute_map = {
'delivered': 'delivered',
'sent': 'sent',
'processing': 'processing',
'soft_bounces': 'softBounces',
'hard_bounces': 'hardBounces',
'unsubscriptions': 'unsubscriptions',
'answered': 'answered'
}
def __init__(self, delivered=None, sent=None, processing=None, soft_bounces=None, hard_bounces=None, unsubscriptions=None, answered=None): # noqa: E501
"""GetSmsCampaignStats - a model defined in Swagger""" # noqa: E501
self._delivered = None
self._sent = None
self._processing = None
self._soft_bounces = None
self._hard_bounces = None
self._unsubscriptions = None
self._answered = None
self.discriminator = None
self.delivered = delivered
self.sent = sent
self.processing = processing
self.soft_bounces = soft_bounces
self.hard_bounces = hard_bounces
self.unsubscriptions = unsubscriptions
self.answered = answered
@property
def delivered(self):
"""Gets the delivered of this GetSmsCampaignStats. # noqa: E501
Number of delivered SMS # noqa: E501
:return: The delivered of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._delivered
@delivered.setter
def delivered(self, delivered):
"""Sets the delivered of this GetSmsCampaignStats.
Number of delivered SMS # noqa: E501
:param delivered: The delivered of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if delivered is None:
raise ValueError("Invalid value for `delivered`, must not be `None`") # noqa: E501
self._delivered = delivered
@property
def sent(self):
"""Gets the sent of this GetSmsCampaignStats. # noqa: E501
Number of sent SMS # noqa: E501
:return: The sent of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._sent
@sent.setter
def sent(self, sent):
"""Sets the sent of this GetSmsCampaignStats.
Number of sent SMS # noqa: E501
:param sent: The sent of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if sent is None:
raise ValueError("Invalid value for `sent`, must not be `None`") # noqa: E501
self._sent = sent
@property
def processing(self):
"""Gets the processing of this GetSmsCampaignStats. # noqa: E501
Number of processing SMS # noqa: E501
:return: The processing of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._processing
@processing.setter
def processing(self, processing):
"""Sets the processing of this GetSmsCampaignStats.
Number of processing SMS # noqa: E501
:param processing: The processing of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if processing is None:
raise ValueError("Invalid value for `processing`, must not be `None`") # noqa: E501
self._processing = processing
@property
def soft_bounces(self):
"""Gets the soft_bounces of this GetSmsCampaignStats. # noqa: E501
Number of softbounced SMS # noqa: E501
:return: The soft_bounces of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._soft_bounces
@soft_bounces.setter
def soft_bounces(self, soft_bounces):
"""Sets the soft_bounces of this GetSmsCampaignStats.
Number of softbounced SMS # noqa: E501
:param soft_bounces: The soft_bounces of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if soft_bounces is None:
raise ValueError("Invalid value for `soft_bounces`, must not be `None`") # noqa: E501
self._soft_bounces = soft_bounces
@property
def hard_bounces(self):
"""Gets the hard_bounces of this GetSmsCampaignStats. # noqa: E501
Number of hardbounced SMS # noqa: E501
:return: The hard_bounces of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._hard_bounces
@hard_bounces.setter
def hard_bounces(self, hard_bounces):
"""Sets the hard_bounces of this GetSmsCampaignStats.
Number of hardbounced SMS # noqa: E501
:param hard_bounces: The hard_bounces of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if hard_bounces is None:
raise ValueError("Invalid value for `hard_bounces`, must not be `None`") # noqa: E501
self._hard_bounces = hard_bounces
@property
def unsubscriptions(self):
"""Gets the unsubscriptions of this GetSmsCampaignStats. # noqa: E501
Number of unsubscription SMS # noqa: E501
:return: The unsubscriptions of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._unsubscriptions
@unsubscriptions.setter
def unsubscriptions(self, unsubscriptions):
"""Sets the unsubscriptions of this GetSmsCampaignStats.
Number of unsubscription SMS # noqa: E501
:param unsubscriptions: The unsubscriptions of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if unsubscriptions is None:
raise ValueError("Invalid value for `unsubscriptions`, must not be `None`") # noqa: E501
self._unsubscriptions = unsubscriptions
@property
def answered(self):
"""Gets the answered of this GetSmsCampaignStats. # noqa: E501
Number of replies to the SMS # noqa: E501
:return: The answered of this GetSmsCampaignStats. # noqa: E501
:rtype: int
"""
return self._answered
@answered.setter
def answered(self, answered):
"""Sets the answered of this GetSmsCampaignStats.
Number of replies to the SMS # noqa: E501
:param answered: The answered of this GetSmsCampaignStats. # noqa: E501
:type: int
"""
if answered is None:
raise ValueError("Invalid value for `answered`, must not be `None`") # noqa: E501
self._answered = answered
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(GetSmsCampaignStats, 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, GetSmsCampaignStats):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(delivered=None, sent=None, processing=None, soft_bounces=None, hard_bounces=None, unsubscriptions=None, answered=None)
|
59,394 |
sib_api_v3_sdk.models.get_sms_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, GetSmsCampaignStats):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,395 |
sib_api_v3_sdk.models.get_sms_campaign_stats
|
__init__
|
GetSmsCampaignStats - a model defined in Swagger
|
def __init__(self, delivered=None, sent=None, processing=None, soft_bounces=None, hard_bounces=None, unsubscriptions=None, answered=None): # noqa: E501
"""GetSmsCampaignStats - a model defined in Swagger""" # noqa: E501
self._delivered = None
self._sent = None
self._processing = None
self._soft_bounces = None
self._hard_bounces = None
self._unsubscriptions = None
self._answered = None
self.discriminator = None
self.delivered = delivered
self.sent = sent
self.processing = processing
self.soft_bounces = soft_bounces
self.hard_bounces = hard_bounces
self.unsubscriptions = unsubscriptions
self.answered = answered
|
(self, delivered=None, sent=None, processing=None, soft_bounces=None, hard_bounces=None, unsubscriptions=None, answered=None)
|
59,398 |
sib_api_v3_sdk.models.get_sms_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(GetSmsCampaignStats, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,400 |
sib_api_v3_sdk.models.get_sms_campaigns
|
GetSmsCampaigns
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsCampaigns(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
"""GetSmsCampaigns - 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 GetSmsCampaigns. # noqa: E501
:return: The campaigns of this GetSmsCampaigns. # noqa: E501
:rtype: list[object]
"""
return self._campaigns
@campaigns.setter
def campaigns(self, campaigns):
"""Sets the campaigns of this GetSmsCampaigns.
:param campaigns: The campaigns of this GetSmsCampaigns. # noqa: E501
:type: list[object]
"""
self._campaigns = campaigns
@property
def count(self):
"""Gets the count of this GetSmsCampaigns. # noqa: E501
Number of SMS campaigns retrieved # noqa: E501
:return: The count of this GetSmsCampaigns. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
"""Sets the count of this GetSmsCampaigns.
Number of SMS campaigns retrieved # noqa: E501
:param count: The count of this GetSmsCampaigns. # 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(GetSmsCampaigns, 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, GetSmsCampaigns):
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,401 |
sib_api_v3_sdk.models.get_sms_campaigns
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, GetSmsCampaigns):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,402 |
sib_api_v3_sdk.models.get_sms_campaigns
|
__init__
|
GetSmsCampaigns - a model defined in Swagger
|
def __init__(self, campaigns=None, count=None): # noqa: E501
"""GetSmsCampaigns - 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,405 |
sib_api_v3_sdk.models.get_sms_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(GetSmsCampaigns, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,407 |
sib_api_v3_sdk.models.get_sms_event_report
|
GetSmsEventReport
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsEventReport(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[GetSmsEventReportEvents]'
}
attribute_map = {
'events': 'events'
}
def __init__(self, events=None): # noqa: E501
"""GetSmsEventReport - 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 GetSmsEventReport. # noqa: E501
:return: The events of this GetSmsEventReport. # noqa: E501
:rtype: list[GetSmsEventReportEvents]
"""
return self._events
@events.setter
def events(self, events):
"""Sets the events of this GetSmsEventReport.
:param events: The events of this GetSmsEventReport. # noqa: E501
:type: list[GetSmsEventReportEvents]
"""
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(GetSmsEventReport, 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, GetSmsEventReport):
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,408 |
sib_api_v3_sdk.models.get_sms_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, GetSmsEventReport):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,409 |
sib_api_v3_sdk.models.get_sms_event_report
|
__init__
|
GetSmsEventReport - a model defined in Swagger
|
def __init__(self, events=None): # noqa: E501
"""GetSmsEventReport - 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,412 |
sib_api_v3_sdk.models.get_sms_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(GetSmsEventReport, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
59,414 |
sib_api_v3_sdk.models.get_sms_event_report_events
|
GetSmsEventReportEvents
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class GetSmsEventReportEvents(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 = {
'phone_number': 'str',
'_date': 'str',
'message_id': 'str',
'event': 'str',
'reason': 'str',
'reply': 'str',
'tag': 'str'
}
attribute_map = {
'phone_number': 'phoneNumber',
'_date': 'date',
'message_id': 'messageId',
'event': 'event',
'reason': 'reason',
'reply': 'reply',
'tag': 'tag'
}
def __init__(self, phone_number=None, _date=None, message_id=None, event=None, reason=None, reply=None, tag=None): # noqa: E501
"""GetSmsEventReportEvents - a model defined in Swagger""" # noqa: E501
self._phone_number = None
self.__date = None
self._message_id = None
self._event = None
self._reason = None
self._reply = None
self._tag = None
self.discriminator = None
if phone_number is not None:
self.phone_number = phone_number
if _date is not None:
self._date = _date
if message_id is not None:
self.message_id = message_id
if event is not None:
self.event = event
if reason is not None:
self.reason = reason
if reply is not None:
self.reply = reply
if tag is not None:
self.tag = tag
@property
def phone_number(self):
"""Gets the phone_number of this GetSmsEventReportEvents. # noqa: E501
Phone number which has generated the event # noqa: E501
:return: The phone_number of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._phone_number
@phone_number.setter
def phone_number(self, phone_number):
"""Sets the phone_number of this GetSmsEventReportEvents.
Phone number which has generated the event # noqa: E501
:param phone_number: The phone_number of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self._phone_number = phone_number
@property
def _date(self):
"""Gets the _date of this GetSmsEventReportEvents. # noqa: E501
UTC date-time on which the event has been generated # noqa: E501
:return: The _date of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self.__date
@_date.setter
def _date(self, _date):
"""Sets the _date of this GetSmsEventReportEvents.
UTC date-time on which the event has been generated # noqa: E501
:param _date: The _date of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self.__date = _date
@property
def message_id(self):
"""Gets the message_id of this GetSmsEventReportEvents. # noqa: E501
Message ID which generated the event # noqa: E501
:return: The message_id of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._message_id
@message_id.setter
def message_id(self, message_id):
"""Sets the message_id of this GetSmsEventReportEvents.
Message ID which generated the event # noqa: E501
:param message_id: The message_id of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self._message_id = message_id
@property
def event(self):
"""Gets the event of this GetSmsEventReportEvents. # noqa: E501
Event which occurred # noqa: E501
:return: The event of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._event
@event.setter
def event(self, event):
"""Sets the event of this GetSmsEventReportEvents.
Event which occurred # noqa: E501
:param event: The event of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "sent", "accepted", "unsubscription", "replies", "blocked", "rejected"] # 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 GetSmsEventReportEvents. # noqa: E501
Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501
:return: The reason of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._reason
@reason.setter
def reason(self, reason):
"""Sets the reason of this GetSmsEventReportEvents.
Reason of bounce (only available if the event is hardbounce or softbounce) # noqa: E501
:param reason: The reason of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self._reason = reason
@property
def reply(self):
"""Gets the reply of this GetSmsEventReportEvents. # noqa: E501
:return: The reply of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._reply
@reply.setter
def reply(self, reply):
"""Sets the reply of this GetSmsEventReportEvents.
:param reply: The reply of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self._reply = reply
@property
def tag(self):
"""Gets the tag of this GetSmsEventReportEvents. # noqa: E501
Tag of the SMS which generated the event # noqa: E501
:return: The tag of this GetSmsEventReportEvents. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this GetSmsEventReportEvents.
Tag of the SMS which generated the event # noqa: E501
:param tag: The tag of this GetSmsEventReportEvents. # noqa: E501
:type: str
"""
self._tag = tag
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(GetSmsEventReportEvents, 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, GetSmsEventReportEvents):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(phone_number=None, _date=None, message_id=None, event=None, reason=None, reply=None, tag=None)
|
59,415 |
sib_api_v3_sdk.models.get_sms_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, GetSmsEventReportEvents):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
59,416 |
sib_api_v3_sdk.models.get_sms_event_report_events
|
__init__
|
GetSmsEventReportEvents - a model defined in Swagger
|
def __init__(self, phone_number=None, _date=None, message_id=None, event=None, reason=None, reply=None, tag=None): # noqa: E501
"""GetSmsEventReportEvents - a model defined in Swagger""" # noqa: E501
self._phone_number = None
self.__date = None
self._message_id = None
self._event = None
self._reason = None
self._reply = None
self._tag = None
self.discriminator = None
if phone_number is not None:
self.phone_number = phone_number
if _date is not None:
self._date = _date
if message_id is not None:
self.message_id = message_id
if event is not None:
self.event = event
if reason is not None:
self.reason = reason
if reply is not None:
self.reply = reply
if tag is not None:
self.tag = tag
|
(self, phone_number=None, _date=None, message_id=None, event=None, reason=None, reply=None, tag=None)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.