index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
1.07M
⌀ | signature
stringlengths 2
42.8k
⌀ |
---|---|---|---|---|---|
58,431 |
sib_api_v3_sdk.models.create_model
|
CreateModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateModel(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'
}
attribute_map = {
'id': 'id'
}
def __init__(self, id=None): # noqa: E501
"""CreateModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
self.id = id
@property
def id(self):
"""Gets the id of this CreateModel. # noqa: E501
ID of the object created # noqa: E501
:return: The id of this CreateModel. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateModel.
ID of the object created # noqa: E501
:param id: The id of this CreateModel. # noqa: E501
:type: int
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateModel, 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, CreateModel):
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)
|
58,432 |
sib_api_v3_sdk.models.create_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,433 |
sib_api_v3_sdk.models.create_model
|
__init__
|
CreateModel - a model defined in Swagger
|
def __init__(self, id=None): # noqa: E501
"""CreateModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
self.id = id
|
(self, id=None)
|
58,436 |
sib_api_v3_sdk.models.create_model
|
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(CreateModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,438 |
sib_api_v3_sdk.models.create_product_model
|
CreateProductModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateProductModel(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'
}
attribute_map = {
'id': 'id'
}
def __init__(self, id=None): # noqa: E501
"""CreateProductModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
if id is not None:
self.id = id
@property
def id(self):
"""Gets the id of this CreateProductModel. # noqa: E501
ID of the Product when a new product is created # noqa: E501
:return: The id of this CreateProductModel. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateProductModel.
ID of the Product when a new product is created # noqa: E501
:param id: The id of this CreateProductModel. # noqa: E501
:type: int
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateProductModel, 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, CreateProductModel):
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)
|
58,439 |
sib_api_v3_sdk.models.create_product_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateProductModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,440 |
sib_api_v3_sdk.models.create_product_model
|
__init__
|
CreateProductModel - a model defined in Swagger
|
def __init__(self, id=None): # noqa: E501
"""CreateProductModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
if id is not None:
self.id = id
|
(self, id=None)
|
58,443 |
sib_api_v3_sdk.models.create_product_model
|
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(CreateProductModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,445 |
sib_api_v3_sdk.models.create_reseller
|
CreateReseller
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateReseller(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 = {
'auth_key': 'str',
'id': 'int'
}
attribute_map = {
'auth_key': 'authKey',
'id': 'id'
}
def __init__(self, auth_key=None, id=None): # noqa: E501
"""CreateReseller - a model defined in Swagger""" # noqa: E501
self._auth_key = None
self._id = None
self.discriminator = None
self.auth_key = auth_key
if id is not None:
self.id = id
@property
def auth_key(self):
"""Gets the auth_key of this CreateReseller. # noqa: E501
AuthKey of Reseller child created # noqa: E501
:return: The auth_key of this CreateReseller. # noqa: E501
:rtype: str
"""
return self._auth_key
@auth_key.setter
def auth_key(self, auth_key):
"""Sets the auth_key of this CreateReseller.
AuthKey of Reseller child created # noqa: E501
:param auth_key: The auth_key of this CreateReseller. # noqa: E501
:type: str
"""
if auth_key is None:
raise ValueError("Invalid value for `auth_key`, must not be `None`") # noqa: E501
self._auth_key = auth_key
@property
def id(self):
"""Gets the id of this CreateReseller. # noqa: E501
Id of Reseller child created # noqa: E501
:return: The id of this CreateReseller. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateReseller.
Id of Reseller child created # noqa: E501
:param id: The id of this CreateReseller. # noqa: E501
:type: int
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateReseller, 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, CreateReseller):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(auth_key=None, id=None)
|
58,446 |
sib_api_v3_sdk.models.create_reseller
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateReseller):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,447 |
sib_api_v3_sdk.models.create_reseller
|
__init__
|
CreateReseller - a model defined in Swagger
|
def __init__(self, auth_key=None, id=None): # noqa: E501
"""CreateReseller - a model defined in Swagger""" # noqa: E501
self._auth_key = None
self._id = None
self.discriminator = None
self.auth_key = auth_key
if id is not None:
self.id = id
|
(self, auth_key=None, id=None)
|
58,450 |
sib_api_v3_sdk.models.create_reseller
|
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(CreateReseller, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,452 |
sib_api_v3_sdk.models.create_sender
|
CreateSender
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSender(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'email': 'str',
'ips': 'list[CreateSenderIps]'
}
attribute_map = {
'name': 'name',
'email': 'email',
'ips': 'ips'
}
def __init__(self, name=None, email=None, ips=None): # noqa: E501
"""CreateSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._ips = None
self.discriminator = None
self.name = name
self.email = email
if ips is not None:
self.ips = ips
@property
def name(self):
"""Gets the name of this CreateSender. # noqa: E501
From Name to use for the sender # noqa: E501
:return: The name of this CreateSender. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateSender.
From Name to use for the sender # noqa: E501
:param name: The name of this CreateSender. # 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 CreateSender. # noqa: E501
From email to use for the sender. A verification email will be sent to this address. # noqa: E501
:return: The email of this CreateSender. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this CreateSender.
From email to use for the sender. A verification email will be sent to this address. # noqa: E501
:param email: The email of this CreateSender. # 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 ips(self):
"""Gets the ips of this CreateSender. # noqa: E501
Mandatory in case of dedicated IP, IPs to associate to the sender # noqa: E501
:return: The ips of this CreateSender. # noqa: E501
:rtype: list[CreateSenderIps]
"""
return self._ips
@ips.setter
def ips(self, ips):
"""Sets the ips of this CreateSender.
Mandatory in case of dedicated IP, IPs to associate to the sender # noqa: E501
:param ips: The ips of this CreateSender. # noqa: E501
:type: list[CreateSenderIps]
"""
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(CreateSender, 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, CreateSender):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, email=None, ips=None)
|
58,453 |
sib_api_v3_sdk.models.create_sender
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSender):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,454 |
sib_api_v3_sdk.models.create_sender
|
__init__
|
CreateSender - a model defined in Swagger
|
def __init__(self, name=None, email=None, ips=None): # noqa: E501
"""CreateSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._ips = None
self.discriminator = None
self.name = name
self.email = email
if ips is not None:
self.ips = ips
|
(self, name=None, email=None, ips=None)
|
58,457 |
sib_api_v3_sdk.models.create_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(CreateSender, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,459 |
sib_api_v3_sdk.models.create_sender_ips
|
CreateSenderIps
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSenderIps(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
"""CreateSenderIps - 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
if weight is not None:
self.weight = weight
@property
def ip(self):
"""Gets the ip of this CreateSenderIps. # noqa: E501
Dedicated IP available in your account # noqa: E501
:return: The ip of this CreateSenderIps. # noqa: E501
:rtype: str
"""
return self._ip
@ip.setter
def ip(self, ip):
"""Sets the ip of this CreateSenderIps.
Dedicated IP available in your account # noqa: E501
:param ip: The ip of this CreateSenderIps. # 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 CreateSenderIps. # noqa: E501
Domain of the IP # noqa: E501
:return: The domain of this CreateSenderIps. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this CreateSenderIps.
Domain of the IP # noqa: E501
:param domain: The domain of this CreateSenderIps. # 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 CreateSenderIps. # noqa: E501
Weight to apply to the IP. Sum of all IP weights must be 100. Should be passed for either ALL or NONE of the IPs. If it's not passed, the sending will be equally balanced on all IPs. # noqa: E501
:return: The weight of this CreateSenderIps. # noqa: E501
:rtype: int
"""
return self._weight
@weight.setter
def weight(self, weight):
"""Sets the weight of this CreateSenderIps.
Weight to apply to the IP. Sum of all IP weights must be 100. Should be passed for either ALL or NONE of the IPs. If it's not passed, the sending will be equally balanced on all IPs. # noqa: E501
:param weight: The weight of this CreateSenderIps. # noqa: E501
:type: int
"""
if weight is not None and weight > 100: # noqa: E501
raise ValueError("Invalid value for `weight`, must be a value less than or equal to `100`") # noqa: E501
if weight is not None and weight < 1: # noqa: E501
raise ValueError("Invalid value for `weight`, must be a value greater than or equal to `1`") # 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(CreateSenderIps, 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, CreateSenderIps):
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)
|
58,460 |
sib_api_v3_sdk.models.create_sender_ips
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSenderIps):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,461 |
sib_api_v3_sdk.models.create_sender_ips
|
__init__
|
CreateSenderIps - a model defined in Swagger
|
def __init__(self, ip=None, domain=None, weight=None): # noqa: E501
"""CreateSenderIps - 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
if weight is not None:
self.weight = weight
|
(self, ip=None, domain=None, weight=None)
|
58,464 |
sib_api_v3_sdk.models.create_sender_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(CreateSenderIps, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,466 |
sib_api_v3_sdk.models.create_sender_model
|
CreateSenderModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSenderModel(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',
'spf_error': 'bool',
'dkim_error': 'bool'
}
attribute_map = {
'id': 'id',
'spf_error': 'spfError',
'dkim_error': 'dkimError'
}
def __init__(self, id=None, spf_error=None, dkim_error=None): # noqa: E501
"""CreateSenderModel - a model defined in Swagger""" # noqa: E501
self._id = None
self._spf_error = None
self._dkim_error = None
self.discriminator = None
self.id = id
if spf_error is not None:
self.spf_error = spf_error
if dkim_error is not None:
self.dkim_error = dkim_error
@property
def id(self):
"""Gets the id of this CreateSenderModel. # noqa: E501
ID of the Sender created # noqa: E501
:return: The id of this CreateSenderModel. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateSenderModel.
ID of the Sender created # noqa: E501
:param id: The id of this CreateSenderModel. # 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 spf_error(self):
"""Gets the spf_error of this CreateSenderModel. # noqa: E501
Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) # noqa: E501
:return: The spf_error of this CreateSenderModel. # noqa: E501
:rtype: bool
"""
return self._spf_error
@spf_error.setter
def spf_error(self, spf_error):
"""Sets the spf_error of this CreateSenderModel.
Status of SPF configuration for the sender (true = SPF not well configured, false = SPF well configured) # noqa: E501
:param spf_error: The spf_error of this CreateSenderModel. # noqa: E501
:type: bool
"""
self._spf_error = spf_error
@property
def dkim_error(self):
"""Gets the dkim_error of this CreateSenderModel. # noqa: E501
Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) # noqa: E501
:return: The dkim_error of this CreateSenderModel. # noqa: E501
:rtype: bool
"""
return self._dkim_error
@dkim_error.setter
def dkim_error(self, dkim_error):
"""Sets the dkim_error of this CreateSenderModel.
Status of DKIM configuration for the sender (true = DKIM not well configured, false = DKIM well configured) # noqa: E501
:param dkim_error: The dkim_error of this CreateSenderModel. # noqa: E501
:type: bool
"""
self._dkim_error = dkim_error
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(CreateSenderModel, 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, CreateSenderModel):
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, spf_error=None, dkim_error=None)
|
58,467 |
sib_api_v3_sdk.models.create_sender_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSenderModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,468 |
sib_api_v3_sdk.models.create_sender_model
|
__init__
|
CreateSenderModel - a model defined in Swagger
|
def __init__(self, id=None, spf_error=None, dkim_error=None): # noqa: E501
"""CreateSenderModel - a model defined in Swagger""" # noqa: E501
self._id = None
self._spf_error = None
self._dkim_error = None
self.discriminator = None
self.id = id
if spf_error is not None:
self.spf_error = spf_error
if dkim_error is not None:
self.dkim_error = dkim_error
|
(self, id=None, spf_error=None, dkim_error=None)
|
58,471 |
sib_api_v3_sdk.models.create_sender_model
|
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(CreateSenderModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,473 |
sib_api_v3_sdk.models.create_sms_campaign
|
CreateSmsCampaign
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSmsCampaign(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'sender': 'str',
'content': 'str',
'recipients': 'CreateSmsCampaignRecipients',
'scheduled_at': 'str',
'unicode_enabled': 'bool',
'organisation_prefix': 'str',
'unsubscribe_instruction': 'str'
}
attribute_map = {
'name': 'name',
'sender': 'sender',
'content': 'content',
'recipients': 'recipients',
'scheduled_at': 'scheduledAt',
'unicode_enabled': 'unicodeEnabled',
'organisation_prefix': 'organisationPrefix',
'unsubscribe_instruction': 'unsubscribeInstruction'
}
def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None): # noqa: E501
"""CreateSmsCampaign - a model defined in Swagger""" # noqa: E501
self._name = None
self._sender = None
self._content = None
self._recipients = None
self._scheduled_at = None
self._unicode_enabled = None
self._organisation_prefix = None
self._unsubscribe_instruction = None
self.discriminator = None
self.name = name
self.sender = sender
self.content = content
if recipients is not None:
self.recipients = recipients
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if unicode_enabled is not None:
self.unicode_enabled = unicode_enabled
if organisation_prefix is not None:
self.organisation_prefix = organisation_prefix
if unsubscribe_instruction is not None:
self.unsubscribe_instruction = unsubscribe_instruction
@property
def name(self):
"""Gets the name of this CreateSmsCampaign. # noqa: E501
Name of the campaign # noqa: E501
:return: The name of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateSmsCampaign.
Name of the campaign # noqa: E501
:param name: The name of this CreateSmsCampaign. # 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 sender(self):
"""Gets the sender of this CreateSmsCampaign. # noqa: E501
Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters** # noqa: E501
:return: The sender of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this CreateSmsCampaign.
Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters** # noqa: E501
:param sender: The sender of this CreateSmsCampaign. # noqa: E501
:type: str
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
if sender is not None and len(sender) > 15:
raise ValueError("Invalid value for `sender`, length must be less than or equal to `15`") # noqa: E501
self._sender = sender
@property
def content(self):
"""Gets the content of this CreateSmsCampaign. # noqa: E501
Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS # noqa: E501
:return: The content of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this CreateSmsCampaign.
Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS # noqa: E501
:param content: The content of this CreateSmsCampaign. # 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 recipients(self):
"""Gets the recipients of this CreateSmsCampaign. # noqa: E501
:return: The recipients of this CreateSmsCampaign. # noqa: E501
:rtype: CreateSmsCampaignRecipients
"""
return self._recipients
@recipients.setter
def recipients(self, recipients):
"""Sets the recipients of this CreateSmsCampaign.
:param recipients: The recipients of this CreateSmsCampaign. # noqa: E501
:type: CreateSmsCampaignRecipients
"""
self._recipients = recipients
@property
def scheduled_at(self):
"""Gets the scheduled_at of this CreateSmsCampaign. # noqa: E501
UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. # noqa: E501
:return: The scheduled_at of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._scheduled_at
@scheduled_at.setter
def scheduled_at(self, scheduled_at):
"""Sets the scheduled_at of this CreateSmsCampaign.
UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. # noqa: E501
:param scheduled_at: The scheduled_at of this CreateSmsCampaign. # noqa: E501
:type: str
"""
self._scheduled_at = scheduled_at
@property
def unicode_enabled(self):
"""Gets the unicode_enabled of this CreateSmsCampaign. # noqa: E501
Format of the message. It indicates whether the content should be treated as unicode or not. # noqa: E501
:return: The unicode_enabled of this CreateSmsCampaign. # noqa: E501
:rtype: bool
"""
return self._unicode_enabled
@unicode_enabled.setter
def unicode_enabled(self, unicode_enabled):
"""Sets the unicode_enabled of this CreateSmsCampaign.
Format of the message. It indicates whether the content should be treated as unicode or not. # noqa: E501
:param unicode_enabled: The unicode_enabled of this CreateSmsCampaign. # noqa: E501
:type: bool
"""
self._unicode_enabled = unicode_enabled
@property
def organisation_prefix(self):
"""Gets the organisation_prefix of this CreateSmsCampaign. # noqa: E501
A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501
:return: The organisation_prefix of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._organisation_prefix
@organisation_prefix.setter
def organisation_prefix(self, organisation_prefix):
"""Sets the organisation_prefix of this CreateSmsCampaign.
A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501
:param organisation_prefix: The organisation_prefix of this CreateSmsCampaign. # noqa: E501
:type: str
"""
self._organisation_prefix = organisation_prefix
@property
def unsubscribe_instruction(self):
"""Gets the unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501
Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501
:return: The unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501
:rtype: str
"""
return self._unsubscribe_instruction
@unsubscribe_instruction.setter
def unsubscribe_instruction(self, unsubscribe_instruction):
"""Sets the unsubscribe_instruction of this CreateSmsCampaign.
Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501
:param unsubscribe_instruction: The unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501
:type: str
"""
self._unsubscribe_instruction = unsubscribe_instruction
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(CreateSmsCampaign, 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, CreateSmsCampaign):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None)
|
58,474 |
sib_api_v3_sdk.models.create_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, CreateSmsCampaign):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,475 |
sib_api_v3_sdk.models.create_sms_campaign
|
__init__
|
CreateSmsCampaign - a model defined in Swagger
|
def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None): # noqa: E501
"""CreateSmsCampaign - a model defined in Swagger""" # noqa: E501
self._name = None
self._sender = None
self._content = None
self._recipients = None
self._scheduled_at = None
self._unicode_enabled = None
self._organisation_prefix = None
self._unsubscribe_instruction = None
self.discriminator = None
self.name = name
self.sender = sender
self.content = content
if recipients is not None:
self.recipients = recipients
if scheduled_at is not None:
self.scheduled_at = scheduled_at
if unicode_enabled is not None:
self.unicode_enabled = unicode_enabled
if organisation_prefix is not None:
self.organisation_prefix = organisation_prefix
if unsubscribe_instruction is not None:
self.unsubscribe_instruction = unsubscribe_instruction
|
(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None)
|
58,478 |
sib_api_v3_sdk.models.create_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(CreateSmsCampaign, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,480 |
sib_api_v3_sdk.models.create_sms_campaign_recipients
|
CreateSmsCampaignRecipients
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSmsCampaignRecipients(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 = {
'list_ids': 'list[int]',
'exclusion_list_ids': 'list[int]'
}
attribute_map = {
'list_ids': 'listIds',
'exclusion_list_ids': 'exclusionListIds'
}
def __init__(self, list_ids=None, exclusion_list_ids=None): # noqa: E501
"""CreateSmsCampaignRecipients - a model defined in Swagger""" # noqa: E501
self._list_ids = None
self._exclusion_list_ids = None
self.discriminator = None
self.list_ids = list_ids
if exclusion_list_ids is not None:
self.exclusion_list_ids = exclusion_list_ids
@property
def list_ids(self):
"""Gets the list_ids of this CreateSmsCampaignRecipients. # noqa: E501
Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty # noqa: E501
:return: The list_ids of this CreateSmsCampaignRecipients. # noqa: E501
:rtype: list[int]
"""
return self._list_ids
@list_ids.setter
def list_ids(self, list_ids):
"""Sets the list_ids of this CreateSmsCampaignRecipients.
Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty # noqa: E501
:param list_ids: The list_ids of this CreateSmsCampaignRecipients. # noqa: E501
:type: list[int]
"""
if list_ids is None:
raise ValueError("Invalid value for `list_ids`, must not be `None`") # noqa: E501
self._list_ids = list_ids
@property
def exclusion_list_ids(self):
"""Gets the exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501
List ids which have to be excluded from a campaign # noqa: E501
:return: The exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501
:rtype: list[int]
"""
return self._exclusion_list_ids
@exclusion_list_ids.setter
def exclusion_list_ids(self, exclusion_list_ids):
"""Sets the exclusion_list_ids of this CreateSmsCampaignRecipients.
List ids which have to be excluded from a campaign # noqa: E501
:param exclusion_list_ids: The exclusion_list_ids of this CreateSmsCampaignRecipients. # noqa: E501
:type: list[int]
"""
self._exclusion_list_ids = exclusion_list_ids
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(CreateSmsCampaignRecipients, 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, CreateSmsCampaignRecipients):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(list_ids=None, exclusion_list_ids=None)
|
58,481 |
sib_api_v3_sdk.models.create_sms_campaign_recipients
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSmsCampaignRecipients):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,482 |
sib_api_v3_sdk.models.create_sms_campaign_recipients
|
__init__
|
CreateSmsCampaignRecipients - a model defined in Swagger
|
def __init__(self, list_ids=None, exclusion_list_ids=None): # noqa: E501
"""CreateSmsCampaignRecipients - a model defined in Swagger""" # noqa: E501
self._list_ids = None
self._exclusion_list_ids = None
self.discriminator = None
self.list_ids = list_ids
if exclusion_list_ids is not None:
self.exclusion_list_ids = exclusion_list_ids
|
(self, list_ids=None, exclusion_list_ids=None)
|
58,485 |
sib_api_v3_sdk.models.create_sms_campaign_recipients
|
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(CreateSmsCampaignRecipients, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,487 |
sib_api_v3_sdk.models.create_smtp_email
|
CreateSmtpEmail
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSmtpEmail(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 = {
'message_id': 'str',
'message_ids': 'list[str]'
}
attribute_map = {
'message_id': 'messageId',
'message_ids': 'messageIds'
}
def __init__(self, message_id=None, message_ids=None): # noqa: E501
"""CreateSmtpEmail - a model defined in Swagger""" # noqa: E501
self._message_id = None
self._message_ids = None
self.discriminator = None
if message_id is not None:
self.message_id = message_id
if message_ids is not None:
self.message_ids = message_ids
@property
def message_id(self):
"""Gets the message_id of this CreateSmtpEmail. # noqa: E501
Message ID of the transactional email sent # noqa: E501
:return: The message_id of this CreateSmtpEmail. # noqa: E501
:rtype: str
"""
return self._message_id
@message_id.setter
def message_id(self, message_id):
"""Sets the message_id of this CreateSmtpEmail.
Message ID of the transactional email sent # noqa: E501
:param message_id: The message_id of this CreateSmtpEmail. # noqa: E501
:type: str
"""
self._message_id = message_id
@property
def message_ids(self):
"""Gets the message_ids of this CreateSmtpEmail. # noqa: E501
:return: The message_ids of this CreateSmtpEmail. # noqa: E501
:rtype: list[str]
"""
return self._message_ids
@message_ids.setter
def message_ids(self, message_ids):
"""Sets the message_ids of this CreateSmtpEmail.
:param message_ids: The message_ids of this CreateSmtpEmail. # noqa: E501
:type: list[str]
"""
self._message_ids = message_ids
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(CreateSmtpEmail, 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, CreateSmtpEmail):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(message_id=None, message_ids=None)
|
58,488 |
sib_api_v3_sdk.models.create_smtp_email
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSmtpEmail):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,489 |
sib_api_v3_sdk.models.create_smtp_email
|
__init__
|
CreateSmtpEmail - a model defined in Swagger
|
def __init__(self, message_id=None, message_ids=None): # noqa: E501
"""CreateSmtpEmail - a model defined in Swagger""" # noqa: E501
self._message_id = None
self._message_ids = None
self.discriminator = None
if message_id is not None:
self.message_id = message_id
if message_ids is not None:
self.message_ids = message_ids
|
(self, message_id=None, message_ids=None)
|
58,492 |
sib_api_v3_sdk.models.create_smtp_email
|
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(CreateSmtpEmail, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,494 |
sib_api_v3_sdk.models.create_smtp_template
|
CreateSmtpTemplate
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSmtpTemplate(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 = {
'tag': 'str',
'sender': 'CreateSmtpTemplateSender',
'template_name': 'str',
'html_content': 'str',
'html_url': 'str',
'subject': 'str',
'reply_to': 'str',
'to_field': 'str',
'attachment_url': 'str',
'is_active': 'bool'
}
attribute_map = {
'tag': 'tag',
'sender': 'sender',
'template_name': 'templateName',
'html_content': 'htmlContent',
'html_url': 'htmlUrl',
'subject': 'subject',
'reply_to': 'replyTo',
'to_field': 'toField',
'attachment_url': 'attachmentUrl',
'is_active': 'isActive'
}
def __init__(self, tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None): # noqa: E501
"""CreateSmtpTemplate - a model defined in Swagger""" # noqa: E501
self._tag = None
self._sender = None
self._template_name = None
self._html_content = None
self._html_url = None
self._subject = None
self._reply_to = None
self._to_field = None
self._attachment_url = None
self._is_active = None
self.discriminator = None
if tag is not None:
self.tag = tag
self.sender = sender
self.template_name = template_name
if html_content is not None:
self.html_content = html_content
if html_url is not None:
self.html_url = html_url
self.subject = subject
if reply_to is not None:
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
if attachment_url is not None:
self.attachment_url = attachment_url
if is_active is not None:
self.is_active = is_active
@property
def tag(self):
"""Gets the tag of this CreateSmtpTemplate. # noqa: E501
Tag of the template # noqa: E501
:return: The tag of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this CreateSmtpTemplate.
Tag of the template # noqa: E501
:param tag: The tag of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._tag = tag
@property
def sender(self):
"""Gets the sender of this CreateSmtpTemplate. # noqa: E501
:return: The sender of this CreateSmtpTemplate. # noqa: E501
:rtype: CreateSmtpTemplateSender
"""
return self._sender
@sender.setter
def sender(self, sender):
"""Sets the sender of this CreateSmtpTemplate.
:param sender: The sender of this CreateSmtpTemplate. # noqa: E501
:type: CreateSmtpTemplateSender
"""
if sender is None:
raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501
self._sender = sender
@property
def template_name(self):
"""Gets the template_name of this CreateSmtpTemplate. # noqa: E501
Name of the template # noqa: E501
:return: The template_name of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._template_name
@template_name.setter
def template_name(self, template_name):
"""Sets the template_name of this CreateSmtpTemplate.
Name of the template # noqa: E501
:param template_name: The template_name of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
if template_name is None:
raise ValueError("Invalid value for `template_name`, must not be `None`") # noqa: E501
self._template_name = template_name
@property
def html_content(self):
"""Gets the html_content of this CreateSmtpTemplate. # noqa: E501
Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty # noqa: E501
:return: The html_content of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._html_content
@html_content.setter
def html_content(self, html_content):
"""Sets the html_content of this CreateSmtpTemplate.
Body of the message (HTML version). The field must have more than 10 characters. REQUIRED if htmlUrl is empty # noqa: E501
:param html_content: The html_content of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._html_content = html_content
@property
def html_url(self):
"""Gets the html_url of this CreateSmtpTemplate. # noqa: E501
Url which contents the body of the email message. REQUIRED if htmlContent is empty # noqa: E501
:return: The html_url of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._html_url
@html_url.setter
def html_url(self, html_url):
"""Sets the html_url of this CreateSmtpTemplate.
Url which contents the body of the email message. REQUIRED if htmlContent is empty # noqa: E501
:param html_url: The html_url of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._html_url = html_url
@property
def subject(self):
"""Gets the subject of this CreateSmtpTemplate. # noqa: E501
Subject of the template # noqa: E501
:return: The subject of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this CreateSmtpTemplate.
Subject of the template # noqa: E501
:param subject: The subject of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
if subject is None:
raise ValueError("Invalid value for `subject`, must not be `None`") # noqa: E501
self._subject = subject
@property
def reply_to(self):
"""Gets the reply_to of this CreateSmtpTemplate. # noqa: E501
Email on which campaign recipients will be able to reply to # noqa: E501
:return: The reply_to of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._reply_to
@reply_to.setter
def reply_to(self, reply_to):
"""Sets the reply_to of this CreateSmtpTemplate.
Email on which campaign recipients will be able to reply to # noqa: E501
:param reply_to: The reply_to of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._reply_to = reply_to
@property
def to_field(self):
"""Gets the to_field of this CreateSmtpTemplate. # noqa: E501
To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization # noqa: E501
:return: The to_field of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._to_field
@to_field.setter
def to_field(self, to_field):
"""Sets the to_field of this CreateSmtpTemplate.
To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization # noqa: E501
:param to_field: The to_field of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._to_field = to_field
@property
def attachment_url(self):
"""Gets the attachment_url of this CreateSmtpTemplate. # noqa: E501
Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps # noqa: E501
:return: The attachment_url of this CreateSmtpTemplate. # noqa: E501
:rtype: str
"""
return self._attachment_url
@attachment_url.setter
def attachment_url(self, attachment_url):
"""Sets the attachment_url of this CreateSmtpTemplate.
Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps # noqa: E501
:param attachment_url: The attachment_url of this CreateSmtpTemplate. # noqa: E501
:type: str
"""
self._attachment_url = attachment_url
@property
def is_active(self):
"""Gets the is_active of this CreateSmtpTemplate. # noqa: E501
Status of template. isActive = true means template is active and isActive = false means template is inactive # noqa: E501
:return: The is_active of this CreateSmtpTemplate. # noqa: E501
:rtype: bool
"""
return self._is_active
@is_active.setter
def is_active(self, is_active):
"""Sets the is_active of this CreateSmtpTemplate.
Status of template. isActive = true means template is active and isActive = false means template is inactive # noqa: E501
:param is_active: The is_active of this CreateSmtpTemplate. # noqa: E501
:type: bool
"""
self._is_active = is_active
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateSmtpTemplate, 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, CreateSmtpTemplate):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None)
|
58,495 |
sib_api_v3_sdk.models.create_smtp_template
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSmtpTemplate):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,496 |
sib_api_v3_sdk.models.create_smtp_template
|
__init__
|
CreateSmtpTemplate - a model defined in Swagger
|
def __init__(self, tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None): # noqa: E501
"""CreateSmtpTemplate - a model defined in Swagger""" # noqa: E501
self._tag = None
self._sender = None
self._template_name = None
self._html_content = None
self._html_url = None
self._subject = None
self._reply_to = None
self._to_field = None
self._attachment_url = None
self._is_active = None
self.discriminator = None
if tag is not None:
self.tag = tag
self.sender = sender
self.template_name = template_name
if html_content is not None:
self.html_content = html_content
if html_url is not None:
self.html_url = html_url
self.subject = subject
if reply_to is not None:
self.reply_to = reply_to
if to_field is not None:
self.to_field = to_field
if attachment_url is not None:
self.attachment_url = attachment_url
if is_active is not None:
self.is_active = is_active
|
(self, tag=None, sender=None, template_name=None, html_content=None, html_url=None, subject=None, reply_to=None, to_field=None, attachment_url=None, is_active=None)
|
58,499 |
sib_api_v3_sdk.models.create_smtp_template
|
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(CreateSmtpTemplate, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,501 |
sib_api_v3_sdk.models.create_smtp_template_sender
|
CreateSmtpTemplateSender
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSmtpTemplateSender(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'email': 'str',
'id': 'int'
}
attribute_map = {
'name': 'name',
'email': 'email',
'id': 'id'
}
def __init__(self, name=None, email=None, id=None): # noqa: E501
"""CreateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._id = None
self.discriminator = None
if name is not None:
self.name = name
if email is not None:
self.email = email
if id is not None:
self.id = id
@property
def name(self):
"""Gets the name of this CreateSmtpTemplateSender. # noqa: E501
Name of the sender. If not passed, will be set to default # noqa: E501
:return: The name of this CreateSmtpTemplateSender. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateSmtpTemplateSender.
Name of the sender. If not passed, will be set to default # noqa: E501
:param name: The name of this CreateSmtpTemplateSender. # noqa: E501
:type: str
"""
self._name = name
@property
def email(self):
"""Gets the email of this CreateSmtpTemplateSender. # noqa: E501
Email of the sender # noqa: E501
:return: The email of this CreateSmtpTemplateSender. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this CreateSmtpTemplateSender.
Email of the sender # noqa: E501
:param email: The email of this CreateSmtpTemplateSender. # noqa: E501
:type: str
"""
self._email = email
@property
def id(self):
"""Gets the id of this CreateSmtpTemplateSender. # noqa: E501
Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501
:return: The id of this CreateSmtpTemplateSender. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateSmtpTemplateSender.
Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501
:param id: The id of this CreateSmtpTemplateSender. # noqa: E501
:type: int
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateSmtpTemplateSender, 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, CreateSmtpTemplateSender):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None, email=None, id=None)
|
58,502 |
sib_api_v3_sdk.models.create_smtp_template_sender
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSmtpTemplateSender):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,503 |
sib_api_v3_sdk.models.create_smtp_template_sender
|
__init__
|
CreateSmtpTemplateSender - a model defined in Swagger
|
def __init__(self, name=None, email=None, id=None): # noqa: E501
"""CreateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501
self._name = None
self._email = None
self._id = None
self.discriminator = None
if name is not None:
self.name = name
if email is not None:
self.email = email
if id is not None:
self.id = id
|
(self, name=None, email=None, id=None)
|
58,506 |
sib_api_v3_sdk.models.create_smtp_template_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(CreateSmtpTemplateSender, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,508 |
sib_api_v3_sdk.models.create_sub_account
|
CreateSubAccount
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSubAccount(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 = {
'company_name': 'str',
'email': 'str',
'language': 'str',
'timezone': 'str'
}
attribute_map = {
'company_name': 'companyName',
'email': 'email',
'language': 'language',
'timezone': 'timezone'
}
def __init__(self, company_name=None, email=None, language=None, timezone=None): # noqa: E501
"""CreateSubAccount - a model defined in Swagger""" # noqa: E501
self._company_name = None
self._email = None
self._language = None
self._timezone = None
self.discriminator = None
self.company_name = company_name
self.email = email
if language is not None:
self.language = language
if timezone is not None:
self.timezone = timezone
@property
def company_name(self):
"""Gets the company_name of this CreateSubAccount. # noqa: E501
Set the name of the sub-account company # noqa: E501
:return: The company_name of this CreateSubAccount. # noqa: E501
:rtype: str
"""
return self._company_name
@company_name.setter
def company_name(self, company_name):
"""Sets the company_name of this CreateSubAccount.
Set the name of the sub-account company # noqa: E501
:param company_name: The company_name of this CreateSubAccount. # noqa: E501
:type: str
"""
if company_name is None:
raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501
self._company_name = company_name
@property
def email(self):
"""Gets the email of this CreateSubAccount. # noqa: E501
Email address for the organization # noqa: E501
:return: The email of this CreateSubAccount. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this CreateSubAccount.
Email address for the organization # noqa: E501
:param email: The email of this CreateSubAccount. # 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 language(self):
"""Gets the language of this CreateSubAccount. # noqa: E501
Set the language of the sub-account # noqa: E501
:return: The language of this CreateSubAccount. # noqa: E501
:rtype: str
"""
return self._language
@language.setter
def language(self, language):
"""Sets the language of this CreateSubAccount.
Set the language of the sub-account # noqa: E501
:param language: The language of this CreateSubAccount. # noqa: E501
:type: str
"""
allowed_values = ["en", "fr", "it", "es", "pt", "de"] # noqa: E501
if language not in allowed_values:
raise ValueError(
"Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
.format(language, allowed_values)
)
self._language = language
@property
def timezone(self):
"""Gets the timezone of this CreateSubAccount. # noqa: E501
Set the timezone of the sub-account # noqa: E501
:return: The timezone of this CreateSubAccount. # noqa: E501
:rtype: str
"""
return self._timezone
@timezone.setter
def timezone(self, timezone):
"""Sets the timezone of this CreateSubAccount.
Set the timezone of the sub-account # noqa: E501
:param timezone: The timezone of this CreateSubAccount. # noqa: E501
:type: str
"""
self._timezone = timezone
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(CreateSubAccount, 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, CreateSubAccount):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(company_name=None, email=None, language=None, timezone=None)
|
58,509 |
sib_api_v3_sdk.models.create_sub_account
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSubAccount):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,510 |
sib_api_v3_sdk.models.create_sub_account
|
__init__
|
CreateSubAccount - a model defined in Swagger
|
def __init__(self, company_name=None, email=None, language=None, timezone=None): # noqa: E501
"""CreateSubAccount - a model defined in Swagger""" # noqa: E501
self._company_name = None
self._email = None
self._language = None
self._timezone = None
self.discriminator = None
self.company_name = company_name
self.email = email
if language is not None:
self.language = language
if timezone is not None:
self.timezone = timezone
|
(self, company_name=None, email=None, language=None, timezone=None)
|
58,513 |
sib_api_v3_sdk.models.create_sub_account
|
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(CreateSubAccount, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,515 |
sib_api_v3_sdk.models.create_sub_account_response
|
CreateSubAccountResponse
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateSubAccountResponse(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'
}
attribute_map = {
'id': 'id'
}
def __init__(self, id=None): # noqa: E501
"""CreateSubAccountResponse - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
self.id = id
@property
def id(self):
"""Gets the id of this CreateSubAccountResponse. # noqa: E501
ID of the sub-account created # noqa: E501
:return: The id of this CreateSubAccountResponse. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateSubAccountResponse.
ID of the sub-account created # noqa: E501
:param id: The id of this CreateSubAccountResponse. # noqa: E501
:type: int
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateSubAccountResponse, 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, CreateSubAccountResponse):
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)
|
58,516 |
sib_api_v3_sdk.models.create_sub_account_response
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateSubAccountResponse):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,517 |
sib_api_v3_sdk.models.create_sub_account_response
|
__init__
|
CreateSubAccountResponse - a model defined in Swagger
|
def __init__(self, id=None): # noqa: E501
"""CreateSubAccountResponse - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
self.id = id
|
(self, id=None)
|
58,520 |
sib_api_v3_sdk.models.create_sub_account_response
|
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(CreateSubAccountResponse, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,522 |
sib_api_v3_sdk.models.create_update_batch_category
|
CreateUpdateBatchCategory
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateBatchCategory(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 = {
'categories': 'list[CreateUpdateCategories]',
'update_enabled': 'bool'
}
attribute_map = {
'categories': 'categories',
'update_enabled': 'updateEnabled'
}
def __init__(self, categories=None, update_enabled=None): # noqa: E501
"""CreateUpdateBatchCategory - a model defined in Swagger""" # noqa: E501
self._categories = None
self._update_enabled = None
self.discriminator = None
self.categories = categories
if update_enabled is not None:
self.update_enabled = update_enabled
@property
def categories(self):
"""Gets the categories of this CreateUpdateBatchCategory. # noqa: E501
array of categories objects # noqa: E501
:return: The categories of this CreateUpdateBatchCategory. # noqa: E501
:rtype: list[CreateUpdateCategories]
"""
return self._categories
@categories.setter
def categories(self, categories):
"""Sets the categories of this CreateUpdateBatchCategory.
array of categories objects # noqa: E501
:param categories: The categories of this CreateUpdateBatchCategory. # noqa: E501
:type: list[CreateUpdateCategories]
"""
if categories is None:
raise ValueError("Invalid value for `categories`, must not be `None`") # noqa: E501
self._categories = categories
@property
def update_enabled(self):
"""Gets the update_enabled of this CreateUpdateBatchCategory. # noqa: E501
Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501
:return: The update_enabled of this CreateUpdateBatchCategory. # noqa: E501
:rtype: bool
"""
return self._update_enabled
@update_enabled.setter
def update_enabled(self, update_enabled):
"""Sets the update_enabled of this CreateUpdateBatchCategory.
Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501
:param update_enabled: The update_enabled of this CreateUpdateBatchCategory. # noqa: E501
:type: bool
"""
self._update_enabled = update_enabled
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(CreateUpdateBatchCategory, 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, CreateUpdateBatchCategory):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(categories=None, update_enabled=None)
|
58,523 |
sib_api_v3_sdk.models.create_update_batch_category
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateBatchCategory):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,524 |
sib_api_v3_sdk.models.create_update_batch_category
|
__init__
|
CreateUpdateBatchCategory - a model defined in Swagger
|
def __init__(self, categories=None, update_enabled=None): # noqa: E501
"""CreateUpdateBatchCategory - a model defined in Swagger""" # noqa: E501
self._categories = None
self._update_enabled = None
self.discriminator = None
self.categories = categories
if update_enabled is not None:
self.update_enabled = update_enabled
|
(self, categories=None, update_enabled=None)
|
58,527 |
sib_api_v3_sdk.models.create_update_batch_category
|
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(CreateUpdateBatchCategory, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,529 |
sib_api_v3_sdk.models.create_update_batch_category_model
|
CreateUpdateBatchCategoryModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateBatchCategoryModel(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 = {
'created_count': 'int',
'updated_count': 'int'
}
attribute_map = {
'created_count': 'createdCount',
'updated_count': 'updatedCount'
}
def __init__(self, created_count=None, updated_count=None): # noqa: E501
"""CreateUpdateBatchCategoryModel - a model defined in Swagger""" # noqa: E501
self._created_count = None
self._updated_count = None
self.discriminator = None
if created_count is not None:
self.created_count = created_count
if updated_count is not None:
self.updated_count = updated_count
@property
def created_count(self):
"""Gets the created_count of this CreateUpdateBatchCategoryModel. # noqa: E501
Number of the new created categories # noqa: E501
:return: The created_count of this CreateUpdateBatchCategoryModel. # noqa: E501
:rtype: int
"""
return self._created_count
@created_count.setter
def created_count(self, created_count):
"""Sets the created_count of this CreateUpdateBatchCategoryModel.
Number of the new created categories # noqa: E501
:param created_count: The created_count of this CreateUpdateBatchCategoryModel. # noqa: E501
:type: int
"""
self._created_count = created_count
@property
def updated_count(self):
"""Gets the updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501
Number of the existing categories updated # noqa: E501
:return: The updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501
:rtype: int
"""
return self._updated_count
@updated_count.setter
def updated_count(self, updated_count):
"""Sets the updated_count of this CreateUpdateBatchCategoryModel.
Number of the existing categories updated # noqa: E501
:param updated_count: The updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501
:type: int
"""
self._updated_count = updated_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(CreateUpdateBatchCategoryModel, 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, CreateUpdateBatchCategoryModel):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(created_count=None, updated_count=None)
|
58,530 |
sib_api_v3_sdk.models.create_update_batch_category_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateBatchCategoryModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,531 |
sib_api_v3_sdk.models.create_update_batch_category_model
|
__init__
|
CreateUpdateBatchCategoryModel - a model defined in Swagger
|
def __init__(self, created_count=None, updated_count=None): # noqa: E501
"""CreateUpdateBatchCategoryModel - a model defined in Swagger""" # noqa: E501
self._created_count = None
self._updated_count = None
self.discriminator = None
if created_count is not None:
self.created_count = created_count
if updated_count is not None:
self.updated_count = updated_count
|
(self, created_count=None, updated_count=None)
|
58,534 |
sib_api_v3_sdk.models.create_update_batch_category_model
|
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(CreateUpdateBatchCategoryModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,536 |
sib_api_v3_sdk.models.create_update_batch_products
|
CreateUpdateBatchProducts
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateBatchProducts(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[CreateUpdateProducts]',
'update_enabled': 'bool'
}
attribute_map = {
'products': 'products',
'update_enabled': 'updateEnabled'
}
def __init__(self, products=None, update_enabled=None): # noqa: E501
"""CreateUpdateBatchProducts - a model defined in Swagger""" # noqa: E501
self._products = None
self._update_enabled = None
self.discriminator = None
self.products = products
if update_enabled is not None:
self.update_enabled = update_enabled
@property
def products(self):
"""Gets the products of this CreateUpdateBatchProducts. # noqa: E501
array of products objects # noqa: E501
:return: The products of this CreateUpdateBatchProducts. # noqa: E501
:rtype: list[CreateUpdateProducts]
"""
return self._products
@products.setter
def products(self, products):
"""Sets the products of this CreateUpdateBatchProducts.
array of products objects # noqa: E501
:param products: The products of this CreateUpdateBatchProducts. # noqa: E501
:type: list[CreateUpdateProducts]
"""
if products is None:
raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501
self._products = products
@property
def update_enabled(self):
"""Gets the update_enabled of this CreateUpdateBatchProducts. # noqa: E501
Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501
:return: The update_enabled of this CreateUpdateBatchProducts. # noqa: E501
:rtype: bool
"""
return self._update_enabled
@update_enabled.setter
def update_enabled(self, update_enabled):
"""Sets the update_enabled of this CreateUpdateBatchProducts.
Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501
:param update_enabled: The update_enabled of this CreateUpdateBatchProducts. # noqa: E501
:type: bool
"""
self._update_enabled = update_enabled
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(CreateUpdateBatchProducts, 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, CreateUpdateBatchProducts):
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, update_enabled=None)
|
58,537 |
sib_api_v3_sdk.models.create_update_batch_products
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateBatchProducts):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,538 |
sib_api_v3_sdk.models.create_update_batch_products
|
__init__
|
CreateUpdateBatchProducts - a model defined in Swagger
|
def __init__(self, products=None, update_enabled=None): # noqa: E501
"""CreateUpdateBatchProducts - a model defined in Swagger""" # noqa: E501
self._products = None
self._update_enabled = None
self.discriminator = None
self.products = products
if update_enabled is not None:
self.update_enabled = update_enabled
|
(self, products=None, update_enabled=None)
|
58,541 |
sib_api_v3_sdk.models.create_update_batch_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(CreateUpdateBatchProducts, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,543 |
sib_api_v3_sdk.models.create_update_batch_products_model
|
CreateUpdateBatchProductsModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateBatchProductsModel(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 = {
'created_count': 'int',
'updated_count': 'int'
}
attribute_map = {
'created_count': 'createdCount',
'updated_count': 'updatedCount'
}
def __init__(self, created_count=None, updated_count=None): # noqa: E501
"""CreateUpdateBatchProductsModel - a model defined in Swagger""" # noqa: E501
self._created_count = None
self._updated_count = None
self.discriminator = None
if created_count is not None:
self.created_count = created_count
if updated_count is not None:
self.updated_count = updated_count
@property
def created_count(self):
"""Gets the created_count of this CreateUpdateBatchProductsModel. # noqa: E501
Number of the new created products # noqa: E501
:return: The created_count of this CreateUpdateBatchProductsModel. # noqa: E501
:rtype: int
"""
return self._created_count
@created_count.setter
def created_count(self, created_count):
"""Sets the created_count of this CreateUpdateBatchProductsModel.
Number of the new created products # noqa: E501
:param created_count: The created_count of this CreateUpdateBatchProductsModel. # noqa: E501
:type: int
"""
self._created_count = created_count
@property
def updated_count(self):
"""Gets the updated_count of this CreateUpdateBatchProductsModel. # noqa: E501
Number of the existing products updated # noqa: E501
:return: The updated_count of this CreateUpdateBatchProductsModel. # noqa: E501
:rtype: int
"""
return self._updated_count
@updated_count.setter
def updated_count(self, updated_count):
"""Sets the updated_count of this CreateUpdateBatchProductsModel.
Number of the existing products updated # noqa: E501
:param updated_count: The updated_count of this CreateUpdateBatchProductsModel. # noqa: E501
:type: int
"""
self._updated_count = updated_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(CreateUpdateBatchProductsModel, 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, CreateUpdateBatchProductsModel):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(created_count=None, updated_count=None)
|
58,544 |
sib_api_v3_sdk.models.create_update_batch_products_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateBatchProductsModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,545 |
sib_api_v3_sdk.models.create_update_batch_products_model
|
__init__
|
CreateUpdateBatchProductsModel - a model defined in Swagger
|
def __init__(self, created_count=None, updated_count=None): # noqa: E501
"""CreateUpdateBatchProductsModel - a model defined in Swagger""" # noqa: E501
self._created_count = None
self._updated_count = None
self.discriminator = None
if created_count is not None:
self.created_count = created_count
if updated_count is not None:
self.updated_count = updated_count
|
(self, created_count=None, updated_count=None)
|
58,548 |
sib_api_v3_sdk.models.create_update_batch_products_model
|
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(CreateUpdateBatchProductsModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,550 |
sib_api_v3_sdk.models.create_update_categories
|
CreateUpdateCategories
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateCategories(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',
'url': 'str',
'deleted_at': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'url': 'url',
'deleted_at': 'deletedAt'
}
def __init__(self, id=None, name=None, url=None, deleted_at=None): # noqa: E501
"""CreateUpdateCategories - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._deleted_at = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if url is not None:
self.url = url
if deleted_at is not None:
self.deleted_at = deleted_at
@property
def id(self):
"""Gets the id of this CreateUpdateCategories. # noqa: E501
Unique Category ID as saved in the shop # noqa: E501
:return: The id of this CreateUpdateCategories. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateUpdateCategories.
Unique Category ID as saved in the shop # noqa: E501
:param id: The id of this CreateUpdateCategories. # 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 CreateUpdateCategories. # noqa: E501
**Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501
:return: The name of this CreateUpdateCategories. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateUpdateCategories.
**Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501
:param name: The name of this CreateUpdateCategories. # noqa: E501
:type: str
"""
self._name = name
@property
def url(self):
"""Gets the url of this CreateUpdateCategories. # noqa: E501
URL to the category # noqa: E501
:return: The url of this CreateUpdateCategories. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this CreateUpdateCategories.
URL to the category # noqa: E501
:param url: The url of this CreateUpdateCategories. # noqa: E501
:type: str
"""
self._url = url
@property
def deleted_at(self):
"""Gets the deleted_at of this CreateUpdateCategories. # noqa: E501
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501
:return: The deleted_at of this CreateUpdateCategories. # noqa: E501
:rtype: str
"""
return self._deleted_at
@deleted_at.setter
def deleted_at(self, deleted_at):
"""Sets the deleted_at of this CreateUpdateCategories.
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501
:param deleted_at: The deleted_at of this CreateUpdateCategories. # noqa: E501
:type: str
"""
self._deleted_at = deleted_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(CreateUpdateCategories, 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, CreateUpdateCategories):
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, url=None, deleted_at=None)
|
58,551 |
sib_api_v3_sdk.models.create_update_categories
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateCategories):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,552 |
sib_api_v3_sdk.models.create_update_categories
|
__init__
|
CreateUpdateCategories - a model defined in Swagger
|
def __init__(self, id=None, name=None, url=None, deleted_at=None): # noqa: E501
"""CreateUpdateCategories - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._deleted_at = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if url is not None:
self.url = url
if deleted_at is not None:
self.deleted_at = deleted_at
|
(self, id=None, name=None, url=None, deleted_at=None)
|
58,555 |
sib_api_v3_sdk.models.create_update_categories
|
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(CreateUpdateCategories, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,557 |
sib_api_v3_sdk.models.create_update_category
|
CreateUpdateCategory
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateCategory(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',
'url': 'str',
'update_enabled': 'bool',
'deleted_at': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'url': 'url',
'update_enabled': 'updateEnabled',
'deleted_at': 'deletedAt'
}
def __init__(self, id=None, name=None, url=None, update_enabled=False, deleted_at=None): # noqa: E501
"""CreateUpdateCategory - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._update_enabled = None
self._deleted_at = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if url is not None:
self.url = url
if update_enabled is not None:
self.update_enabled = update_enabled
if deleted_at is not None:
self.deleted_at = deleted_at
@property
def id(self):
"""Gets the id of this CreateUpdateCategory. # noqa: E501
Unique Category ID as saved in the shop # noqa: E501
:return: The id of this CreateUpdateCategory. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateUpdateCategory.
Unique Category ID as saved in the shop # noqa: E501
:param id: The id of this CreateUpdateCategory. # 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 CreateUpdateCategory. # noqa: E501
**Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501
:return: The name of this CreateUpdateCategory. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateUpdateCategory.
**Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501
:param name: The name of this CreateUpdateCategory. # noqa: E501
:type: str
"""
self._name = name
@property
def url(self):
"""Gets the url of this CreateUpdateCategory. # noqa: E501
URL to the category # noqa: E501
:return: The url of this CreateUpdateCategory. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this CreateUpdateCategory.
URL to the category # noqa: E501
:param url: The url of this CreateUpdateCategory. # noqa: E501
:type: str
"""
self._url = url
@property
def update_enabled(self):
"""Gets the update_enabled of this CreateUpdateCategory. # noqa: E501
Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501
:return: The update_enabled of this CreateUpdateCategory. # noqa: E501
:rtype: bool
"""
return self._update_enabled
@update_enabled.setter
def update_enabled(self, update_enabled):
"""Sets the update_enabled of this CreateUpdateCategory.
Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501
:param update_enabled: The update_enabled of this CreateUpdateCategory. # noqa: E501
:type: bool
"""
self._update_enabled = update_enabled
@property
def deleted_at(self):
"""Gets the deleted_at of this CreateUpdateCategory. # noqa: E501
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501
:return: The deleted_at of this CreateUpdateCategory. # noqa: E501
:rtype: str
"""
return self._deleted_at
@deleted_at.setter
def deleted_at(self, deleted_at):
"""Sets the deleted_at of this CreateUpdateCategory.
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501
:param deleted_at: The deleted_at of this CreateUpdateCategory. # noqa: E501
:type: str
"""
self._deleted_at = deleted_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(CreateUpdateCategory, 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, CreateUpdateCategory):
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, url=None, update_enabled=False, deleted_at=None)
|
58,558 |
sib_api_v3_sdk.models.create_update_category
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateCategory):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,559 |
sib_api_v3_sdk.models.create_update_category
|
__init__
|
CreateUpdateCategory - a model defined in Swagger
|
def __init__(self, id=None, name=None, url=None, update_enabled=False, deleted_at=None): # noqa: E501
"""CreateUpdateCategory - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._update_enabled = None
self._deleted_at = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if url is not None:
self.url = url
if update_enabled is not None:
self.update_enabled = update_enabled
if deleted_at is not None:
self.deleted_at = deleted_at
|
(self, id=None, name=None, url=None, update_enabled=False, deleted_at=None)
|
58,562 |
sib_api_v3_sdk.models.create_update_category
|
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(CreateUpdateCategory, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,564 |
sib_api_v3_sdk.models.create_update_contact_model
|
CreateUpdateContactModel
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateContactModel(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'
}
attribute_map = {
'id': 'id'
}
def __init__(self, id=None): # noqa: E501
"""CreateUpdateContactModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
if id is not None:
self.id = id
@property
def id(self):
"""Gets the id of this CreateUpdateContactModel. # noqa: E501
ID of the contact when a new contact is created # noqa: E501
:return: The id of this CreateUpdateContactModel. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateUpdateContactModel.
ID of the contact when a new contact is created # noqa: E501
:param id: The id of this CreateUpdateContactModel. # noqa: E501
:type: int
"""
self._id = id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateUpdateContactModel, 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, CreateUpdateContactModel):
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)
|
58,565 |
sib_api_v3_sdk.models.create_update_contact_model
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateContactModel):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,566 |
sib_api_v3_sdk.models.create_update_contact_model
|
__init__
|
CreateUpdateContactModel - a model defined in Swagger
|
def __init__(self, id=None): # noqa: E501
"""CreateUpdateContactModel - a model defined in Swagger""" # noqa: E501
self._id = None
self.discriminator = None
if id is not None:
self.id = id
|
(self, id=None)
|
58,569 |
sib_api_v3_sdk.models.create_update_contact_model
|
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(CreateUpdateContactModel, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,571 |
sib_api_v3_sdk.models.create_update_folder
|
CreateUpdateFolder
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateFolder(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str'
}
attribute_map = {
'name': 'name'
}
def __init__(self, name=None): # noqa: E501
"""CreateUpdateFolder - a model defined in Swagger""" # noqa: E501
self._name = None
self.discriminator = None
if name is not None:
self.name = name
@property
def name(self):
"""Gets the name of this CreateUpdateFolder. # noqa: E501
Name of the folder # noqa: E501
:return: The name of this CreateUpdateFolder. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateUpdateFolder.
Name of the folder # noqa: E501
:param name: The name of this CreateUpdateFolder. # noqa: E501
:type: str
"""
self._name = name
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreateUpdateFolder, 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, CreateUpdateFolder):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(name=None)
|
58,572 |
sib_api_v3_sdk.models.create_update_folder
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateFolder):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,573 |
sib_api_v3_sdk.models.create_update_folder
|
__init__
|
CreateUpdateFolder - a model defined in Swagger
|
def __init__(self, name=None): # noqa: E501
"""CreateUpdateFolder - a model defined in Swagger""" # noqa: E501
self._name = None
self.discriminator = None
if name is not None:
self.name = name
|
(self, name=None)
|
58,576 |
sib_api_v3_sdk.models.create_update_folder
|
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(CreateUpdateFolder, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,578 |
sib_api_v3_sdk.models.create_update_product
|
CreateUpdateProduct
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateProduct(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',
'url': 'str',
'image_url': 'str',
'sku': 'str',
'price': 'float',
'categories': 'list[str]',
'parent_id': 'str',
'meta_info': 'dict(str, str)',
'update_enabled': 'bool',
'deleted_at': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'url': 'url',
'image_url': 'imageUrl',
'sku': 'sku',
'price': 'price',
'categories': 'categories',
'parent_id': 'parentId',
'meta_info': 'metaInfo',
'update_enabled': 'updateEnabled',
'deleted_at': 'deletedAt'
}
def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, update_enabled=False, deleted_at=None): # noqa: E501
"""CreateUpdateProduct - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._meta_info = None
self._update_enabled = None
self._deleted_at = None
self.discriminator = None
self.id = id
self.name = name
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 meta_info is not None:
self.meta_info = meta_info
if update_enabled is not None:
self.update_enabled = update_enabled
if deleted_at is not None:
self.deleted_at = deleted_at
@property
def id(self):
"""Gets the id of this CreateUpdateProduct. # noqa: E501
Product ID for which you requested the details # noqa: E501
:return: The id of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateUpdateProduct.
Product ID for which you requested the details # noqa: E501
:param id: The id of this CreateUpdateProduct. # 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 CreateUpdateProduct. # noqa: E501
Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501
:return: The name of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateUpdateProduct.
Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501
:param name: The name of this CreateUpdateProduct. # 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 url(self):
"""Gets the url of this CreateUpdateProduct. # noqa: E501
URL to the product # noqa: E501
:return: The url of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this CreateUpdateProduct.
URL to the product # noqa: E501
:param url: The url of this CreateUpdateProduct. # noqa: E501
:type: str
"""
self._url = url
@property
def image_url(self):
"""Gets the image_url of this CreateUpdateProduct. # noqa: E501
Absolute URL to the cover image of the product # noqa: E501
:return: The image_url of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._image_url
@image_url.setter
def image_url(self, image_url):
"""Sets the image_url of this CreateUpdateProduct.
Absolute URL to the cover image of the product # noqa: E501
:param image_url: The image_url of this CreateUpdateProduct. # noqa: E501
:type: str
"""
self._image_url = image_url
@property
def sku(self):
"""Gets the sku of this CreateUpdateProduct. # noqa: E501
Product identifier from the shop # noqa: E501
:return: The sku of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._sku
@sku.setter
def sku(self, sku):
"""Sets the sku of this CreateUpdateProduct.
Product identifier from the shop # noqa: E501
:param sku: The sku of this CreateUpdateProduct. # noqa: E501
:type: str
"""
self._sku = sku
@property
def price(self):
"""Gets the price of this CreateUpdateProduct. # noqa: E501
Price of the product # noqa: E501
:return: The price of this CreateUpdateProduct. # noqa: E501
:rtype: float
"""
return self._price
@price.setter
def price(self, price):
"""Sets the price of this CreateUpdateProduct.
Price of the product # noqa: E501
:param price: The price of this CreateUpdateProduct. # noqa: E501
:type: float
"""
self._price = price
@property
def categories(self):
"""Gets the categories of this CreateUpdateProduct. # noqa: E501
Category ID-s of the product # noqa: E501
:return: The categories of this CreateUpdateProduct. # noqa: E501
:rtype: list[str]
"""
return self._categories
@categories.setter
def categories(self, categories):
"""Sets the categories of this CreateUpdateProduct.
Category ID-s of the product # noqa: E501
:param categories: The categories of this CreateUpdateProduct. # noqa: E501
:type: list[str]
"""
self._categories = categories
@property
def parent_id(self):
"""Gets the parent_id of this CreateUpdateProduct. # noqa: E501
Parent product id of the product # noqa: E501
:return: The parent_id of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""Sets the parent_id of this CreateUpdateProduct.
Parent product id of the product # noqa: E501
:param parent_id: The parent_id of this CreateUpdateProduct. # noqa: E501
:type: str
"""
self._parent_id = parent_id
@property
def meta_info(self):
"""Gets the meta_info of this CreateUpdateProduct. # noqa: E501
Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501
:return: The meta_info of this CreateUpdateProduct. # noqa: E501
:rtype: dict(str, str)
"""
return self._meta_info
@meta_info.setter
def meta_info(self, meta_info):
"""Sets the meta_info of this CreateUpdateProduct.
Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501
:param meta_info: The meta_info of this CreateUpdateProduct. # noqa: E501
:type: dict(str, str)
"""
self._meta_info = meta_info
@property
def update_enabled(self):
"""Gets the update_enabled of this CreateUpdateProduct. # noqa: E501
Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501
:return: The update_enabled of this CreateUpdateProduct. # noqa: E501
:rtype: bool
"""
return self._update_enabled
@update_enabled.setter
def update_enabled(self, update_enabled):
"""Sets the update_enabled of this CreateUpdateProduct.
Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501
:param update_enabled: The update_enabled of this CreateUpdateProduct. # noqa: E501
:type: bool
"""
self._update_enabled = update_enabled
@property
def deleted_at(self):
"""Gets the deleted_at of this CreateUpdateProduct. # noqa: E501
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501
:return: The deleted_at of this CreateUpdateProduct. # noqa: E501
:rtype: str
"""
return self._deleted_at
@deleted_at.setter
def deleted_at(self, deleted_at):
"""Sets the deleted_at of this CreateUpdateProduct.
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501
:param deleted_at: The deleted_at of this CreateUpdateProduct. # noqa: E501
:type: str
"""
self._deleted_at = deleted_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(CreateUpdateProduct, 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, CreateUpdateProduct):
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, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, update_enabled=False, deleted_at=None)
|
58,579 |
sib_api_v3_sdk.models.create_update_product
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateProduct):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,580 |
sib_api_v3_sdk.models.create_update_product
|
__init__
|
CreateUpdateProduct - a model defined in Swagger
|
def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, update_enabled=False, deleted_at=None): # noqa: E501
"""CreateUpdateProduct - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._meta_info = None
self._update_enabled = None
self._deleted_at = None
self.discriminator = None
self.id = id
self.name = name
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 meta_info is not None:
self.meta_info = meta_info
if update_enabled is not None:
self.update_enabled = update_enabled
if deleted_at is not None:
self.deleted_at = deleted_at
|
(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, update_enabled=False, deleted_at=None)
|
58,583 |
sib_api_v3_sdk.models.create_update_product
|
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(CreateUpdateProduct, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,585 |
sib_api_v3_sdk.models.create_update_products
|
CreateUpdateProducts
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateUpdateProducts(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',
'url': 'str',
'image_url': 'str',
'sku': 'str',
'price': 'float',
'categories': 'list[str]',
'parent_id': 'str',
'meta_info': 'dict(str, str)',
'deleted_at': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'url': 'url',
'image_url': 'imageUrl',
'sku': 'sku',
'price': 'price',
'categories': 'categories',
'parent_id': 'parentId',
'meta_info': 'metaInfo',
'deleted_at': 'deletedAt'
}
def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, deleted_at=None): # noqa: E501
"""CreateUpdateProducts - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._meta_info = None
self._deleted_at = None
self.discriminator = None
self.id = id
self.name = name
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 meta_info is not None:
self.meta_info = meta_info
if deleted_at is not None:
self.deleted_at = deleted_at
@property
def id(self):
"""Gets the id of this CreateUpdateProducts. # noqa: E501
Product ID for which you requested the details # noqa: E501
:return: The id of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this CreateUpdateProducts.
Product ID for which you requested the details # noqa: E501
:param id: The id of this CreateUpdateProducts. # 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 CreateUpdateProducts. # noqa: E501
Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501
:return: The name of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this CreateUpdateProducts.
Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501
:param name: The name of this CreateUpdateProducts. # 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 url(self):
"""Gets the url of this CreateUpdateProducts. # noqa: E501
URL to the product # noqa: E501
:return: The url of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this CreateUpdateProducts.
URL to the product # noqa: E501
:param url: The url of this CreateUpdateProducts. # noqa: E501
:type: str
"""
self._url = url
@property
def image_url(self):
"""Gets the image_url of this CreateUpdateProducts. # noqa: E501
Absolute URL to the cover image of the product # noqa: E501
:return: The image_url of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._image_url
@image_url.setter
def image_url(self, image_url):
"""Sets the image_url of this CreateUpdateProducts.
Absolute URL to the cover image of the product # noqa: E501
:param image_url: The image_url of this CreateUpdateProducts. # noqa: E501
:type: str
"""
self._image_url = image_url
@property
def sku(self):
"""Gets the sku of this CreateUpdateProducts. # noqa: E501
Product identifier from the shop # noqa: E501
:return: The sku of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._sku
@sku.setter
def sku(self, sku):
"""Sets the sku of this CreateUpdateProducts.
Product identifier from the shop # noqa: E501
:param sku: The sku of this CreateUpdateProducts. # noqa: E501
:type: str
"""
self._sku = sku
@property
def price(self):
"""Gets the price of this CreateUpdateProducts. # noqa: E501
Price of the product # noqa: E501
:return: The price of this CreateUpdateProducts. # noqa: E501
:rtype: float
"""
return self._price
@price.setter
def price(self, price):
"""Sets the price of this CreateUpdateProducts.
Price of the product # noqa: E501
:param price: The price of this CreateUpdateProducts. # noqa: E501
:type: float
"""
self._price = price
@property
def categories(self):
"""Gets the categories of this CreateUpdateProducts. # noqa: E501
Category ID-s of the product # noqa: E501
:return: The categories of this CreateUpdateProducts. # noqa: E501
:rtype: list[str]
"""
return self._categories
@categories.setter
def categories(self, categories):
"""Sets the categories of this CreateUpdateProducts.
Category ID-s of the product # noqa: E501
:param categories: The categories of this CreateUpdateProducts. # noqa: E501
:type: list[str]
"""
self._categories = categories
@property
def parent_id(self):
"""Gets the parent_id of this CreateUpdateProducts. # noqa: E501
Parent product id of the product # noqa: E501
:return: The parent_id of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._parent_id
@parent_id.setter
def parent_id(self, parent_id):
"""Sets the parent_id of this CreateUpdateProducts.
Parent product id of the product # noqa: E501
:param parent_id: The parent_id of this CreateUpdateProducts. # noqa: E501
:type: str
"""
self._parent_id = parent_id
@property
def meta_info(self):
"""Gets the meta_info of this CreateUpdateProducts. # noqa: E501
Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501
:return: The meta_info of this CreateUpdateProducts. # noqa: E501
:rtype: dict(str, str)
"""
return self._meta_info
@meta_info.setter
def meta_info(self, meta_info):
"""Sets the meta_info of this CreateUpdateProducts.
Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501
:param meta_info: The meta_info of this CreateUpdateProducts. # noqa: E501
:type: dict(str, str)
"""
self._meta_info = meta_info
@property
def deleted_at(self):
"""Gets the deleted_at of this CreateUpdateProducts. # noqa: E501
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501
:return: The deleted_at of this CreateUpdateProducts. # noqa: E501
:rtype: str
"""
return self._deleted_at
@deleted_at.setter
def deleted_at(self, deleted_at):
"""Sets the deleted_at of this CreateUpdateProducts.
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501
:param deleted_at: The deleted_at of this CreateUpdateProducts. # noqa: E501
:type: str
"""
self._deleted_at = deleted_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(CreateUpdateProducts, 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, CreateUpdateProducts):
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, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, deleted_at=None)
|
58,586 |
sib_api_v3_sdk.models.create_update_products
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateUpdateProducts):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,587 |
sib_api_v3_sdk.models.create_update_products
|
__init__
|
CreateUpdateProducts - a model defined in Swagger
|
def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, deleted_at=None): # noqa: E501
"""CreateUpdateProducts - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._url = None
self._image_url = None
self._sku = None
self._price = None
self._categories = None
self._parent_id = None
self._meta_info = None
self._deleted_at = None
self.discriminator = None
self.id = id
self.name = name
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 meta_info is not None:
self.meta_info = meta_info
if deleted_at is not None:
self.deleted_at = deleted_at
|
(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, deleted_at=None)
|
58,590 |
sib_api_v3_sdk.models.create_update_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(CreateUpdateProducts, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,592 |
sib_api_v3_sdk.models.create_webhook
|
CreateWebhook
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreateWebhook(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 = {
'url': 'str',
'description': 'str',
'events': 'list[str]',
'type': 'str',
'domain': 'str'
}
attribute_map = {
'url': 'url',
'description': 'description',
'events': 'events',
'type': 'type',
'domain': 'domain'
}
def __init__(self, url=None, description=None, events=None, type='transactional', domain=None): # noqa: E501
"""CreateWebhook - a model defined in Swagger""" # noqa: E501
self._url = None
self._description = None
self._events = None
self._type = None
self._domain = None
self.discriminator = None
self.url = url
if description is not None:
self.description = description
self.events = events
if type is not None:
self.type = type
if domain is not None:
self.domain = domain
@property
def url(self):
"""Gets the url of this CreateWebhook. # noqa: E501
URL of the webhook # noqa: E501
:return: The url of this CreateWebhook. # noqa: E501
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""Sets the url of this CreateWebhook.
URL of the webhook # noqa: E501
:param url: The url of this CreateWebhook. # noqa: E501
:type: str
"""
if url is None:
raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
self._url = url
@property
def description(self):
"""Gets the description of this CreateWebhook. # noqa: E501
Description of the webhook # noqa: E501
:return: The description of this CreateWebhook. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this CreateWebhook.
Description of the webhook # noqa: E501
:param description: The description of this CreateWebhook. # noqa: E501
:type: str
"""
self._description = description
@property
def events(self):
"""Gets the events of this CreateWebhook. # noqa: E501
- Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` # noqa: E501
:return: The events of this CreateWebhook. # noqa: E501
:rtype: list[str]
"""
return self._events
@events.setter
def events(self, events):
"""Sets the events of this CreateWebhook.
- Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` # noqa: E501
:param events: The events of this CreateWebhook. # noqa: E501
:type: list[str]
"""
if events is None:
raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501
allowed_values = ["sent", "hardBounce", "softBounce", "blocked", "spam", "delivered", "request", "click", "invalid", "deferred", "opened", "uniqueOpened", "unsubscribed", "listAddition", "contactUpdated", "contactDeleted", "inboundEmailProcessed"] # noqa: E501
if not set(events).issubset(set(allowed_values)):
raise ValueError(
"Invalid values for `events` [{0}], must be a subset of [{1}]" # noqa: E501
.format(", ".join(map(str, set(events) - set(allowed_values))), # noqa: E501
", ".join(map(str, allowed_values)))
)
self._events = events
@property
def type(self):
"""Gets the type of this CreateWebhook. # noqa: E501
Type of the webhook # noqa: E501
:return: The type of this CreateWebhook. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this CreateWebhook.
Type of the webhook # noqa: E501
:param type: The type of this CreateWebhook. # noqa: E501
:type: str
"""
allowed_values = ["transactional", "marketing", "inbound"] # noqa: E501
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
.format(type, allowed_values)
)
self._type = type
@property
def domain(self):
"""Gets the domain of this CreateWebhook. # noqa: E501
Inbound domain of webhook, required in case of event type `inbound` # noqa: E501
:return: The domain of this CreateWebhook. # noqa: E501
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""Sets the domain of this CreateWebhook.
Inbound domain of webhook, required in case of event type `inbound` # noqa: E501
:param domain: The domain of this CreateWebhook. # noqa: E501
:type: str
"""
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(CreateWebhook, 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, CreateWebhook):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(url=None, description=None, events=None, type='transactional', domain=None)
|
58,593 |
sib_api_v3_sdk.models.create_webhook
|
__eq__
|
Returns true if both objects are equal
|
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, CreateWebhook):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,594 |
sib_api_v3_sdk.models.create_webhook
|
__init__
|
CreateWebhook - a model defined in Swagger
|
def __init__(self, url=None, description=None, events=None, type='transactional', domain=None): # noqa: E501
"""CreateWebhook - a model defined in Swagger""" # noqa: E501
self._url = None
self._description = None
self._events = None
self._type = None
self._domain = None
self.discriminator = None
self.url = url
if description is not None:
self.description = description
self.events = events
if type is not None:
self.type = type
if domain is not None:
self.domain = domain
|
(self, url=None, description=None, events=None, type='transactional', domain=None)
|
58,597 |
sib_api_v3_sdk.models.create_webhook
|
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(CreateWebhook, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
58,599 |
sib_api_v3_sdk.models.created_batch_id
|
CreatedBatchId
|
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
|
class CreatedBatchId(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 = {
'batch_id': 'float'
}
attribute_map = {
'batch_id': 'batchId'
}
def __init__(self, batch_id=None): # noqa: E501
"""CreatedBatchId - a model defined in Swagger""" # noqa: E501
self._batch_id = None
self.discriminator = None
self.batch_id = batch_id
@property
def batch_id(self):
"""Gets the batch_id of this CreatedBatchId. # noqa: E501
Batch ID of the request # noqa: E501
:return: The batch_id of this CreatedBatchId. # noqa: E501
:rtype: float
"""
return self._batch_id
@batch_id.setter
def batch_id(self, batch_id):
"""Sets the batch_id of this CreatedBatchId.
Batch ID of the request # noqa: E501
:param batch_id: The batch_id of this CreatedBatchId. # noqa: E501
:type: float
"""
if batch_id is None:
raise ValueError("Invalid value for `batch_id`, must not be `None`") # noqa: E501
self._batch_id = batch_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(CreatedBatchId, 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, CreatedBatchId):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
(batch_id=None)
|
58,600 |
sib_api_v3_sdk.models.created_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, CreatedBatchId):
return False
return self.__dict__ == other.__dict__
|
(self, other)
|
58,601 |
sib_api_v3_sdk.models.created_batch_id
|
__init__
|
CreatedBatchId - a model defined in Swagger
|
def __init__(self, batch_id=None): # noqa: E501
"""CreatedBatchId - a model defined in Swagger""" # noqa: E501
self._batch_id = None
self.discriminator = None
self.batch_id = batch_id
|
(self, batch_id=None)
|
58,604 |
sib_api_v3_sdk.models.created_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(CreatedBatchId, dict):
for key, value in self.items():
result[key] = value
return result
|
(self)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.