index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
1.07M
signature
stringlengths
2
42.8k
59,419
sib_api_v3_sdk.models.get_sms_event_report_events
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetSmsEventReportEvents, dict): for key, value in self.items(): result[key] = value return result
(self)
59,421
sib_api_v3_sdk.models.get_smtp_template_overview
GetSmtpTemplateOverview
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetSmtpTemplateOverview(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'id': 'int', 'name': 'str', 'subject': 'str', 'is_active': 'bool', 'test_sent': 'bool', 'sender': 'GetSmtpTemplateOverviewSender', 'reply_to': 'str', 'to_field': 'str', 'tag': 'str', 'html_content': 'str', 'created_at': 'str', 'modified_at': 'str', 'doi_template': 'bool' } attribute_map = { 'id': 'id', 'name': 'name', 'subject': 'subject', 'is_active': 'isActive', 'test_sent': 'testSent', 'sender': 'sender', 'reply_to': 'replyTo', 'to_field': 'toField', 'tag': 'tag', 'html_content': 'htmlContent', 'created_at': 'createdAt', 'modified_at': 'modifiedAt', 'doi_template': 'doiTemplate' } def __init__(self, id=None, name=None, subject=None, is_active=None, test_sent=None, sender=None, reply_to=None, to_field=None, tag=None, html_content=None, created_at=None, modified_at=None, doi_template=None): # noqa: E501 """GetSmtpTemplateOverview - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._subject = None self._is_active = None self._test_sent = None self._sender = None self._reply_to = None self._to_field = None self._tag = None self._html_content = None self._created_at = None self._modified_at = None self._doi_template = None self.discriminator = None self.id = id self.name = name self.subject = subject self.is_active = is_active self.test_sent = test_sent self.sender = sender self.reply_to = reply_to self.to_field = to_field self.tag = tag self.html_content = html_content self.created_at = created_at self.modified_at = modified_at if doi_template is not None: self.doi_template = doi_template @property def id(self): """Gets the id of this GetSmtpTemplateOverview. # noqa: E501 ID of the template # noqa: E501 :return: The id of this GetSmtpTemplateOverview. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): """Sets the id of this GetSmtpTemplateOverview. ID of the template # noqa: E501 :param id: The id of this GetSmtpTemplateOverview. # noqa: E501 :type: int """ if id is None: raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @property def name(self): """Gets the name of this GetSmtpTemplateOverview. # noqa: E501 Name of the template # noqa: E501 :return: The name of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this GetSmtpTemplateOverview. Name of the template # noqa: E501 :param name: The name of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def subject(self): """Gets the subject of this GetSmtpTemplateOverview. # noqa: E501 Subject of the template # noqa: E501 :return: The subject of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._subject @subject.setter def subject(self, subject): """Sets the subject of this GetSmtpTemplateOverview. Subject of the template # noqa: E501 :param subject: The subject of this GetSmtpTemplateOverview. # 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 is_active(self): """Gets the is_active of this GetSmtpTemplateOverview. # noqa: E501 Status of template (true=active, false=inactive) # noqa: E501 :return: The is_active of this GetSmtpTemplateOverview. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): """Sets the is_active of this GetSmtpTemplateOverview. Status of template (true=active, false=inactive) # noqa: E501 :param is_active: The is_active of this GetSmtpTemplateOverview. # noqa: E501 :type: bool """ if is_active is None: raise ValueError("Invalid value for `is_active`, must not be `None`") # noqa: E501 self._is_active = is_active @property def test_sent(self): """Gets the test_sent of this GetSmtpTemplateOverview. # noqa: E501 Status of test sending for the template (true=test email has been sent, false=test email has not been sent) # noqa: E501 :return: The test_sent of this GetSmtpTemplateOverview. # noqa: E501 :rtype: bool """ return self._test_sent @test_sent.setter def test_sent(self, test_sent): """Sets the test_sent of this GetSmtpTemplateOverview. Status of test sending for the template (true=test email has been sent, false=test email has not been sent) # noqa: E501 :param test_sent: The test_sent of this GetSmtpTemplateOverview. # noqa: E501 :type: bool """ if test_sent is None: raise ValueError("Invalid value for `test_sent`, must not be `None`") # noqa: E501 self._test_sent = test_sent @property def sender(self): """Gets the sender of this GetSmtpTemplateOverview. # noqa: E501 :return: The sender of this GetSmtpTemplateOverview. # noqa: E501 :rtype: GetSmtpTemplateOverviewSender """ return self._sender @sender.setter def sender(self, sender): """Sets the sender of this GetSmtpTemplateOverview. :param sender: The sender of this GetSmtpTemplateOverview. # noqa: E501 :type: GetSmtpTemplateOverviewSender """ if sender is None: raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 self._sender = sender @property def reply_to(self): """Gets the reply_to of this GetSmtpTemplateOverview. # noqa: E501 Email defined as the \"Reply to\" for the template # noqa: E501 :return: The reply_to of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._reply_to @reply_to.setter def reply_to(self, reply_to): """Sets the reply_to of this GetSmtpTemplateOverview. Email defined as the \"Reply to\" for the template # noqa: E501 :param reply_to: The reply_to of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if reply_to is None: raise ValueError("Invalid value for `reply_to`, must not be `None`") # noqa: E501 self._reply_to = reply_to @property def to_field(self): """Gets the to_field of this GetSmtpTemplateOverview. # noqa: E501 Customisation of the \"to\" field for the template # noqa: E501 :return: The to_field of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._to_field @to_field.setter def to_field(self, to_field): """Sets the to_field of this GetSmtpTemplateOverview. Customisation of the \"to\" field for the template # noqa: E501 :param to_field: The to_field of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if to_field is None: raise ValueError("Invalid value for `to_field`, must not be `None`") # noqa: E501 self._to_field = to_field @property def tag(self): """Gets the tag of this GetSmtpTemplateOverview. # noqa: E501 Tag of the template # noqa: E501 :return: The tag of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._tag @tag.setter def tag(self, tag): """Sets the tag of this GetSmtpTemplateOverview. Tag of the template # noqa: E501 :param tag: The tag of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if tag is None: raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 self._tag = tag @property def html_content(self): """Gets the html_content of this GetSmtpTemplateOverview. # noqa: E501 HTML content of the template # noqa: E501 :return: The html_content of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._html_content @html_content.setter def html_content(self, html_content): """Sets the html_content of this GetSmtpTemplateOverview. HTML content of the template # noqa: E501 :param html_content: The html_content of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if html_content is None: raise ValueError("Invalid value for `html_content`, must not be `None`") # noqa: E501 self._html_content = html_content @property def created_at(self): """Gets the created_at of this GetSmtpTemplateOverview. # noqa: E501 Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this GetSmtpTemplateOverview. Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def modified_at(self): """Gets the modified_at of this GetSmtpTemplateOverview. # noqa: E501 Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetSmtpTemplateOverview. # noqa: E501 :rtype: str """ return self._modified_at @modified_at.setter def modified_at(self, modified_at): """Sets the modified_at of this GetSmtpTemplateOverview. Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetSmtpTemplateOverview. # noqa: E501 :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 self._modified_at = modified_at @property def doi_template(self): """Gets the doi_template of this GetSmtpTemplateOverview. # noqa: E501 It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call. # noqa: E501 :return: The doi_template of this GetSmtpTemplateOverview. # noqa: E501 :rtype: bool """ return self._doi_template @doi_template.setter def doi_template(self, doi_template): """Sets the doi_template of this GetSmtpTemplateOverview. It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call. # noqa: E501 :param doi_template: The doi_template of this GetSmtpTemplateOverview. # noqa: E501 :type: bool """ self._doi_template = doi_template 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(GetSmtpTemplateOverview, 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, GetSmtpTemplateOverview): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(id=None, name=None, subject=None, is_active=None, test_sent=None, sender=None, reply_to=None, to_field=None, tag=None, html_content=None, created_at=None, modified_at=None, doi_template=None)
59,422
sib_api_v3_sdk.models.get_smtp_template_overview
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetSmtpTemplateOverview): return False return self.__dict__ == other.__dict__
(self, other)
59,423
sib_api_v3_sdk.models.get_smtp_template_overview
__init__
GetSmtpTemplateOverview - a model defined in Swagger
def __init__(self, id=None, name=None, subject=None, is_active=None, test_sent=None, sender=None, reply_to=None, to_field=None, tag=None, html_content=None, created_at=None, modified_at=None, doi_template=None): # noqa: E501 """GetSmtpTemplateOverview - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._subject = None self._is_active = None self._test_sent = None self._sender = None self._reply_to = None self._to_field = None self._tag = None self._html_content = None self._created_at = None self._modified_at = None self._doi_template = None self.discriminator = None self.id = id self.name = name self.subject = subject self.is_active = is_active self.test_sent = test_sent self.sender = sender self.reply_to = reply_to self.to_field = to_field self.tag = tag self.html_content = html_content self.created_at = created_at self.modified_at = modified_at if doi_template is not None: self.doi_template = doi_template
(self, id=None, name=None, subject=None, is_active=None, test_sent=None, sender=None, reply_to=None, to_field=None, tag=None, html_content=None, created_at=None, modified_at=None, doi_template=None)
59,426
sib_api_v3_sdk.models.get_smtp_template_overview
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetSmtpTemplateOverview, dict): for key, value in self.items(): result[key] = value return result
(self)
59,428
sib_api_v3_sdk.models.get_smtp_template_overview_sender
GetSmtpTemplateOverviewSender
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetSmtpTemplateOverviewSender(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'name': 'str', 'email': 'str', 'id': 'str' } attribute_map = { 'name': 'name', 'email': 'email', 'id': 'id' } def __init__(self, name=None, email=None, id=None): # noqa: E501 """GetSmtpTemplateOverviewSender - 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 GetSmtpTemplateOverviewSender. # noqa: E501 From email for the template # noqa: E501 :return: The name of this GetSmtpTemplateOverviewSender. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this GetSmtpTemplateOverviewSender. From email for the template # noqa: E501 :param name: The name of this GetSmtpTemplateOverviewSender. # noqa: E501 :type: str """ self._name = name @property def email(self): """Gets the email of this GetSmtpTemplateOverviewSender. # noqa: E501 From email for the template # noqa: E501 :return: The email of this GetSmtpTemplateOverviewSender. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this GetSmtpTemplateOverviewSender. From email for the template # noqa: E501 :param email: The email of this GetSmtpTemplateOverviewSender. # noqa: E501 :type: str """ self._email = email @property def id(self): """Gets the id of this GetSmtpTemplateOverviewSender. # noqa: E501 Sender id of the template # noqa: E501 :return: The id of this GetSmtpTemplateOverviewSender. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this GetSmtpTemplateOverviewSender. Sender id of the template # noqa: E501 :param id: The id of this GetSmtpTemplateOverviewSender. # noqa: E501 :type: str """ self._id = id def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetSmtpTemplateOverviewSender, 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, GetSmtpTemplateOverviewSender): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(name=None, email=None, id=None)
59,429
sib_api_v3_sdk.models.get_smtp_template_overview_sender
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetSmtpTemplateOverviewSender): return False return self.__dict__ == other.__dict__
(self, other)
59,430
sib_api_v3_sdk.models.get_smtp_template_overview_sender
__init__
GetSmtpTemplateOverviewSender - a model defined in Swagger
def __init__(self, name=None, email=None, id=None): # noqa: E501 """GetSmtpTemplateOverviewSender - 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)
59,433
sib_api_v3_sdk.models.get_smtp_template_overview_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(GetSmtpTemplateOverviewSender, dict): for key, value in self.items(): result[key] = value return result
(self)
59,435
sib_api_v3_sdk.models.get_smtp_templates
GetSmtpTemplates
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetSmtpTemplates(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'count': 'int', 'templates': 'list[GetSmtpTemplateOverview]' } attribute_map = { 'count': 'count', 'templates': 'templates' } def __init__(self, count=None, templates=None): # noqa: E501 """GetSmtpTemplates - a model defined in Swagger""" # noqa: E501 self._count = None self._templates = None self.discriminator = None if count is not None: self.count = count if templates is not None: self.templates = templates @property def count(self): """Gets the count of this GetSmtpTemplates. # noqa: E501 Count of transactional email templates # noqa: E501 :return: The count of this GetSmtpTemplates. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): """Sets the count of this GetSmtpTemplates. Count of transactional email templates # noqa: E501 :param count: The count of this GetSmtpTemplates. # noqa: E501 :type: int """ self._count = count @property def templates(self): """Gets the templates of this GetSmtpTemplates. # noqa: E501 :return: The templates of this GetSmtpTemplates. # noqa: E501 :rtype: list[GetSmtpTemplateOverview] """ return self._templates @templates.setter def templates(self, templates): """Sets the templates of this GetSmtpTemplates. :param templates: The templates of this GetSmtpTemplates. # noqa: E501 :type: list[GetSmtpTemplateOverview] """ self._templates = templates 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(GetSmtpTemplates, 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, GetSmtpTemplates): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(count=None, templates=None)
59,436
sib_api_v3_sdk.models.get_smtp_templates
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetSmtpTemplates): return False return self.__dict__ == other.__dict__
(self, other)
59,437
sib_api_v3_sdk.models.get_smtp_templates
__init__
GetSmtpTemplates - a model defined in Swagger
def __init__(self, count=None, templates=None): # noqa: E501 """GetSmtpTemplates - a model defined in Swagger""" # noqa: E501 self._count = None self._templates = None self.discriminator = None if count is not None: self.count = count if templates is not None: self.templates = templates
(self, count=None, templates=None)
59,440
sib_api_v3_sdk.models.get_smtp_templates
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(GetSmtpTemplates, dict): for key, value in self.items(): result[key] = value return result
(self)
59,442
sib_api_v3_sdk.models.get_sso_token
GetSsoToken
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetSsoToken(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 = { 'token': 'str' } attribute_map = { 'token': 'token' } def __init__(self, token=None): # noqa: E501 """GetSsoToken - a model defined in Swagger""" # noqa: E501 self._token = None self.discriminator = None self.token = token @property def token(self): """Gets the token of this GetSsoToken. # noqa: E501 Session token, it will remain valid for 15 days. # noqa: E501 :return: The token of this GetSsoToken. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): """Sets the token of this GetSsoToken. Session token, it will remain valid for 15 days. # noqa: E501 :param token: The token of this GetSsoToken. # noqa: E501 :type: str """ if token is None: raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 self._token = token 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(GetSsoToken, 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, GetSsoToken): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(token=None)
59,443
sib_api_v3_sdk.models.get_sso_token
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetSsoToken): return False return self.__dict__ == other.__dict__
(self, other)
59,444
sib_api_v3_sdk.models.get_sso_token
__init__
GetSsoToken - a model defined in Swagger
def __init__(self, token=None): # noqa: E501 """GetSsoToken - a model defined in Swagger""" # noqa: E501 self._token = None self.discriminator = None self.token = token
(self, token=None)
59,447
sib_api_v3_sdk.models.get_sso_token
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(GetSsoToken, dict): for key, value in self.items(): result[key] = value return result
(self)
59,449
sib_api_v3_sdk.models.get_stats_by_browser
GetStatsByBrowser
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetStatsByBrowser(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { } attribute_map = { } def __init__(self): # noqa: E501 """GetStatsByBrowser - a model defined in Swagger""" # noqa: E501 self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetStatsByBrowser, 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, GetStatsByBrowser): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
()
59,450
sib_api_v3_sdk.models.get_stats_by_browser
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetStatsByBrowser): return False return self.__dict__ == other.__dict__
(self, other)
59,451
sib_api_v3_sdk.models.get_stats_by_browser
__init__
GetStatsByBrowser - a model defined in Swagger
def __init__(self): # noqa: E501 """GetStatsByBrowser - a model defined in Swagger""" # noqa: E501 self.discriminator = None
(self)
59,454
sib_api_v3_sdk.models.get_stats_by_browser
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(GetStatsByBrowser, dict): for key, value in self.items(): result[key] = value return result
(self)
59,456
sib_api_v3_sdk.models.get_stats_by_device
GetStatsByDevice
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetStatsByDevice(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 = { 'desktop': 'dict(str, GetDeviceBrowserStats)', 'mobile': 'dict(str, GetDeviceBrowserStats)', 'tablet': 'dict(str, GetDeviceBrowserStats)', 'unknown': 'dict(str, GetDeviceBrowserStats)' } attribute_map = { 'desktop': 'desktop', 'mobile': 'mobile', 'tablet': 'tablet', 'unknown': 'unknown' } def __init__(self, desktop=None, mobile=None, tablet=None, unknown=None): # noqa: E501 """GetStatsByDevice - a model defined in Swagger""" # noqa: E501 self._desktop = None self._mobile = None self._tablet = None self._unknown = None self.discriminator = None if desktop is not None: self.desktop = desktop if mobile is not None: self.mobile = mobile if tablet is not None: self.tablet = tablet if unknown is not None: self.unknown = unknown @property def desktop(self): """Gets the desktop of this GetStatsByDevice. # noqa: E501 Statistics of the campaign on the basis of desktop devices # noqa: E501 :return: The desktop of this GetStatsByDevice. # noqa: E501 :rtype: dict(str, GetDeviceBrowserStats) """ return self._desktop @desktop.setter def desktop(self, desktop): """Sets the desktop of this GetStatsByDevice. Statistics of the campaign on the basis of desktop devices # noqa: E501 :param desktop: The desktop of this GetStatsByDevice. # noqa: E501 :type: dict(str, GetDeviceBrowserStats) """ self._desktop = desktop @property def mobile(self): """Gets the mobile of this GetStatsByDevice. # noqa: E501 Statistics of the campaign on the basis of mobile devices # noqa: E501 :return: The mobile of this GetStatsByDevice. # noqa: E501 :rtype: dict(str, GetDeviceBrowserStats) """ return self._mobile @mobile.setter def mobile(self, mobile): """Sets the mobile of this GetStatsByDevice. Statistics of the campaign on the basis of mobile devices # noqa: E501 :param mobile: The mobile of this GetStatsByDevice. # noqa: E501 :type: dict(str, GetDeviceBrowserStats) """ self._mobile = mobile @property def tablet(self): """Gets the tablet of this GetStatsByDevice. # noqa: E501 Statistics of the campaign on the basis of tablet devices # noqa: E501 :return: The tablet of this GetStatsByDevice. # noqa: E501 :rtype: dict(str, GetDeviceBrowserStats) """ return self._tablet @tablet.setter def tablet(self, tablet): """Sets the tablet of this GetStatsByDevice. Statistics of the campaign on the basis of tablet devices # noqa: E501 :param tablet: The tablet of this GetStatsByDevice. # noqa: E501 :type: dict(str, GetDeviceBrowserStats) """ self._tablet = tablet @property def unknown(self): """Gets the unknown of this GetStatsByDevice. # noqa: E501 Statistics of the campaign on the basis of unknown devices # noqa: E501 :return: The unknown of this GetStatsByDevice. # noqa: E501 :rtype: dict(str, GetDeviceBrowserStats) """ return self._unknown @unknown.setter def unknown(self, unknown): """Sets the unknown of this GetStatsByDevice. Statistics of the campaign on the basis of unknown devices # noqa: E501 :param unknown: The unknown of this GetStatsByDevice. # noqa: E501 :type: dict(str, GetDeviceBrowserStats) """ self._unknown = unknown 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(GetStatsByDevice, 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, GetStatsByDevice): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(desktop=None, mobile=None, tablet=None, unknown=None)
59,457
sib_api_v3_sdk.models.get_stats_by_device
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetStatsByDevice): return False return self.__dict__ == other.__dict__
(self, other)
59,458
sib_api_v3_sdk.models.get_stats_by_device
__init__
GetStatsByDevice - a model defined in Swagger
def __init__(self, desktop=None, mobile=None, tablet=None, unknown=None): # noqa: E501 """GetStatsByDevice - a model defined in Swagger""" # noqa: E501 self._desktop = None self._mobile = None self._tablet = None self._unknown = None self.discriminator = None if desktop is not None: self.desktop = desktop if mobile is not None: self.mobile = mobile if tablet is not None: self.tablet = tablet if unknown is not None: self.unknown = unknown
(self, desktop=None, mobile=None, tablet=None, unknown=None)
59,461
sib_api_v3_sdk.models.get_stats_by_device
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(GetStatsByDevice, dict): for key, value in self.items(): result[key] = value return result
(self)
59,463
sib_api_v3_sdk.models.get_stats_by_domain
GetStatsByDomain
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetStatsByDomain(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { } attribute_map = { } def __init__(self): # noqa: E501 """GetStatsByDomain - a model defined in Swagger""" # noqa: E501 self.discriminator = None def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetStatsByDomain, 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, GetStatsByDomain): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
()
59,464
sib_api_v3_sdk.models.get_stats_by_domain
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetStatsByDomain): return False return self.__dict__ == other.__dict__
(self, other)
59,465
sib_api_v3_sdk.models.get_stats_by_domain
__init__
GetStatsByDomain - a model defined in Swagger
def __init__(self): # noqa: E501 """GetStatsByDomain - a model defined in Swagger""" # noqa: E501 self.discriminator = None
(self)
59,468
sib_api_v3_sdk.models.get_stats_by_domain
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetStatsByDomain, dict): for key, value in self.items(): result[key] = value return result
(self)
59,470
sib_api_v3_sdk.models.get_transac_aggregated_sms_report
GetTransacAggregatedSmsReport
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacAggregatedSmsReport(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 = { 'range': 'str', 'requests': 'int', 'delivered': 'int', 'hard_bounces': 'int', 'soft_bounces': 'int', 'blocked': 'int', 'unsubscribed': 'int', 'replied': 'int', 'accepted': 'int', 'rejected': 'int' } attribute_map = { 'range': 'range', 'requests': 'requests', 'delivered': 'delivered', 'hard_bounces': 'hardBounces', 'soft_bounces': 'softBounces', 'blocked': 'blocked', 'unsubscribed': 'unsubscribed', 'replied': 'replied', 'accepted': 'accepted', 'rejected': 'rejected' } def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacAggregatedSmsReport - a model defined in Swagger""" # noqa: E501 self._range = None self._requests = None self._delivered = None self._hard_bounces = None self._soft_bounces = None self._blocked = None self._unsubscribed = None self._replied = None self._accepted = None self._rejected = None self.discriminator = None if range is not None: self.range = range if requests is not None: self.requests = requests if delivered is not None: self.delivered = delivered if hard_bounces is not None: self.hard_bounces = hard_bounces if soft_bounces is not None: self.soft_bounces = soft_bounces if blocked is not None: self.blocked = blocked if unsubscribed is not None: self.unsubscribed = unsubscribed if replied is not None: self.replied = replied if accepted is not None: self.accepted = accepted if rejected is not None: self.rejected = rejected @property def range(self): """Gets the range of this GetTransacAggregatedSmsReport. # noqa: E501 Time frame of the report # noqa: E501 :return: The range of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: str """ return self._range @range.setter def range(self, range): """Sets the range of this GetTransacAggregatedSmsReport. Time frame of the report # noqa: E501 :param range: The range of this GetTransacAggregatedSmsReport. # noqa: E501 :type: str """ self._range = range @property def requests(self): """Gets the requests of this GetTransacAggregatedSmsReport. # noqa: E501 Number of requests for the timeframe # noqa: E501 :return: The requests of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._requests @requests.setter def requests(self, requests): """Sets the requests of this GetTransacAggregatedSmsReport. Number of requests for the timeframe # noqa: E501 :param requests: The requests of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._requests = requests @property def delivered(self): """Gets the delivered of this GetTransacAggregatedSmsReport. # noqa: E501 Number of delivered SMS for the timeframe # noqa: E501 :return: The delivered of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._delivered @delivered.setter def delivered(self, delivered): """Sets the delivered of this GetTransacAggregatedSmsReport. Number of delivered SMS for the timeframe # noqa: E501 :param delivered: The delivered of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._delivered = delivered @property def hard_bounces(self): """Gets the hard_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 Number of hardbounces for the timeframe # noqa: E501 :return: The hard_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._hard_bounces @hard_bounces.setter def hard_bounces(self, hard_bounces): """Sets the hard_bounces of this GetTransacAggregatedSmsReport. Number of hardbounces for the timeframe # noqa: E501 :param hard_bounces: The hard_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._hard_bounces = hard_bounces @property def soft_bounces(self): """Gets the soft_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 Number of softbounces for the timeframe # noqa: E501 :return: The soft_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._soft_bounces @soft_bounces.setter def soft_bounces(self, soft_bounces): """Sets the soft_bounces of this GetTransacAggregatedSmsReport. Number of softbounces for the timeframe # noqa: E501 :param soft_bounces: The soft_bounces of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._soft_bounces = soft_bounces @property def blocked(self): """Gets the blocked of this GetTransacAggregatedSmsReport. # noqa: E501 Number of blocked contact for the timeframe # noqa: E501 :return: The blocked of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._blocked @blocked.setter def blocked(self, blocked): """Sets the blocked of this GetTransacAggregatedSmsReport. Number of blocked contact for the timeframe # noqa: E501 :param blocked: The blocked of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._blocked = blocked @property def unsubscribed(self): """Gets the unsubscribed of this GetTransacAggregatedSmsReport. # noqa: E501 Number of unsubscription for the timeframe # noqa: E501 :return: The unsubscribed of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._unsubscribed @unsubscribed.setter def unsubscribed(self, unsubscribed): """Sets the unsubscribed of this GetTransacAggregatedSmsReport. Number of unsubscription for the timeframe # noqa: E501 :param unsubscribed: The unsubscribed of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._unsubscribed = unsubscribed @property def replied(self): """Gets the replied of this GetTransacAggregatedSmsReport. # noqa: E501 Number of answered SMS for the timeframe # noqa: E501 :return: The replied of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._replied @replied.setter def replied(self, replied): """Sets the replied of this GetTransacAggregatedSmsReport. Number of answered SMS for the timeframe # noqa: E501 :param replied: The replied of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._replied = replied @property def accepted(self): """Gets the accepted of this GetTransacAggregatedSmsReport. # noqa: E501 Number of accepted for the timeframe # noqa: E501 :return: The accepted of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._accepted @accepted.setter def accepted(self, accepted): """Sets the accepted of this GetTransacAggregatedSmsReport. Number of accepted for the timeframe # noqa: E501 :param accepted: The accepted of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._accepted = accepted @property def rejected(self): """Gets the rejected of this GetTransacAggregatedSmsReport. # noqa: E501 Number of rejected for the timeframe # noqa: E501 :return: The rejected of this GetTransacAggregatedSmsReport. # noqa: E501 :rtype: int """ return self._rejected @rejected.setter def rejected(self, rejected): """Sets the rejected of this GetTransacAggregatedSmsReport. Number of rejected for the timeframe # noqa: E501 :param rejected: The rejected of this GetTransacAggregatedSmsReport. # noqa: E501 :type: int """ self._rejected = rejected 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(GetTransacAggregatedSmsReport, 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, GetTransacAggregatedSmsReport): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None)
59,471
sib_api_v3_sdk.models.get_transac_aggregated_sms_report
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacAggregatedSmsReport): return False return self.__dict__ == other.__dict__
(self, other)
59,472
sib_api_v3_sdk.models.get_transac_aggregated_sms_report
__init__
GetTransacAggregatedSmsReport - a model defined in Swagger
def __init__(self, range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacAggregatedSmsReport - a model defined in Swagger""" # noqa: E501 self._range = None self._requests = None self._delivered = None self._hard_bounces = None self._soft_bounces = None self._blocked = None self._unsubscribed = None self._replied = None self._accepted = None self._rejected = None self.discriminator = None if range is not None: self.range = range if requests is not None: self.requests = requests if delivered is not None: self.delivered = delivered if hard_bounces is not None: self.hard_bounces = hard_bounces if soft_bounces is not None: self.soft_bounces = soft_bounces if blocked is not None: self.blocked = blocked if unsubscribed is not None: self.unsubscribed = unsubscribed if replied is not None: self.replied = replied if accepted is not None: self.accepted = accepted if rejected is not None: self.rejected = rejected
(self, range=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None)
59,475
sib_api_v3_sdk.models.get_transac_aggregated_sms_report
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacAggregatedSmsReport, dict): for key, value in self.items(): result[key] = value return result
(self)
59,477
sib_api_v3_sdk.models.get_transac_blocked_contacts
GetTransacBlockedContacts
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacBlockedContacts(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'count': 'int', 'contacts': 'list[GetTransacBlockedContactsContacts]' } attribute_map = { 'count': 'count', 'contacts': 'contacts' } def __init__(self, count=None, contacts=None): # noqa: E501 """GetTransacBlockedContacts - a model defined in Swagger""" # noqa: E501 self._count = None self._contacts = None self.discriminator = None if count is not None: self.count = count if contacts is not None: self.contacts = contacts @property def count(self): """Gets the count of this GetTransacBlockedContacts. # noqa: E501 Count of blocked or unsubscribed contact # noqa: E501 :return: The count of this GetTransacBlockedContacts. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): """Sets the count of this GetTransacBlockedContacts. Count of blocked or unsubscribed contact # noqa: E501 :param count: The count of this GetTransacBlockedContacts. # noqa: E501 :type: int """ self._count = count @property def contacts(self): """Gets the contacts of this GetTransacBlockedContacts. # noqa: E501 :return: The contacts of this GetTransacBlockedContacts. # noqa: E501 :rtype: list[GetTransacBlockedContactsContacts] """ return self._contacts @contacts.setter def contacts(self, contacts): """Sets the contacts of this GetTransacBlockedContacts. :param contacts: The contacts of this GetTransacBlockedContacts. # noqa: E501 :type: list[GetTransacBlockedContactsContacts] """ self._contacts = contacts 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(GetTransacBlockedContacts, 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, GetTransacBlockedContacts): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(count=None, contacts=None)
59,478
sib_api_v3_sdk.models.get_transac_blocked_contacts
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacBlockedContacts): return False return self.__dict__ == other.__dict__
(self, other)
59,479
sib_api_v3_sdk.models.get_transac_blocked_contacts
__init__
GetTransacBlockedContacts - a model defined in Swagger
def __init__(self, count=None, contacts=None): # noqa: E501 """GetTransacBlockedContacts - a model defined in Swagger""" # noqa: E501 self._count = None self._contacts = None self.discriminator = None if count is not None: self.count = count if contacts is not None: self.contacts = contacts
(self, count=None, contacts=None)
59,482
sib_api_v3_sdk.models.get_transac_blocked_contacts
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacBlockedContacts, dict): for key, value in self.items(): result[key] = value return result
(self)
59,484
sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts
GetTransacBlockedContactsContacts
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacBlockedContactsContacts(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'email': 'str', 'sender_email': 'str', 'reason': 'GetTransacBlockedContactsReason', 'blocked_at': 'str' } attribute_map = { 'email': 'email', 'sender_email': 'senderEmail', 'reason': 'reason', 'blocked_at': 'blockedAt' } def __init__(self, email=None, sender_email=None, reason=None, blocked_at=None): # noqa: E501 """GetTransacBlockedContactsContacts - a model defined in Swagger""" # noqa: E501 self._email = None self._sender_email = None self._reason = None self._blocked_at = None self.discriminator = None self.email = email self.sender_email = sender_email self.reason = reason self.blocked_at = blocked_at @property def email(self): """Gets the email of this GetTransacBlockedContactsContacts. # noqa: E501 Email address of the blocked or unsubscribed contact # noqa: E501 :return: The email of this GetTransacBlockedContactsContacts. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this GetTransacBlockedContactsContacts. Email address of the blocked or unsubscribed contact # noqa: E501 :param email: The email of this GetTransacBlockedContactsContacts. # 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 sender_email(self): """Gets the sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 Sender email address of the blocked or unsubscribed contact # noqa: E501 :return: The sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 :rtype: str """ return self._sender_email @sender_email.setter def sender_email(self, sender_email): """Sets the sender_email of this GetTransacBlockedContactsContacts. Sender email address of the blocked or unsubscribed contact # noqa: E501 :param sender_email: The sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 :type: str """ if sender_email is None: raise ValueError("Invalid value for `sender_email`, must not be `None`") # noqa: E501 self._sender_email = sender_email @property def reason(self): """Gets the reason of this GetTransacBlockedContactsContacts. # noqa: E501 :return: The reason of this GetTransacBlockedContactsContacts. # noqa: E501 :rtype: GetTransacBlockedContactsReason """ return self._reason @reason.setter def reason(self, reason): """Sets the reason of this GetTransacBlockedContactsContacts. :param reason: The reason of this GetTransacBlockedContactsContacts. # noqa: E501 :type: GetTransacBlockedContactsReason """ if reason is None: raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501 self._reason = reason @property def blocked_at(self): """Gets the blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 Date when the contact was blocked or unsubscribed on # noqa: E501 :return: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 :rtype: str """ return self._blocked_at @blocked_at.setter def blocked_at(self, blocked_at): """Sets the blocked_at of this GetTransacBlockedContactsContacts. Date when the contact was blocked or unsubscribed on # noqa: E501 :param blocked_at: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 :type: str """ if blocked_at is None: raise ValueError("Invalid value for `blocked_at`, must not be `None`") # noqa: E501 self._blocked_at = blocked_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(GetTransacBlockedContactsContacts, 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, GetTransacBlockedContactsContacts): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(email=None, sender_email=None, reason=None, blocked_at=None)
59,485
sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacBlockedContactsContacts): return False return self.__dict__ == other.__dict__
(self, other)
59,486
sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts
__init__
GetTransacBlockedContactsContacts - a model defined in Swagger
def __init__(self, email=None, sender_email=None, reason=None, blocked_at=None): # noqa: E501 """GetTransacBlockedContactsContacts - a model defined in Swagger""" # noqa: E501 self._email = None self._sender_email = None self._reason = None self._blocked_at = None self.discriminator = None self.email = email self.sender_email = sender_email self.reason = reason self.blocked_at = blocked_at
(self, email=None, sender_email=None, reason=None, blocked_at=None)
59,489
sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacBlockedContactsContacts, dict): for key, value in self.items(): result[key] = value return result
(self)
59,491
sib_api_v3_sdk.models.get_transac_blocked_contacts_reason
GetTransacBlockedContactsReason
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacBlockedContactsReason(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 = { 'code': 'str', 'message': 'str' } attribute_map = { 'code': 'code', 'message': 'message' } def __init__(self, code=None, message=None): # noqa: E501 """GetTransacBlockedContactsReason - a model defined in Swagger""" # noqa: E501 self._code = None self._message = None self.discriminator = None if code is not None: self.code = code if message is not None: self.message = message @property def code(self): """Gets the code of this GetTransacBlockedContactsReason. # noqa: E501 Reason code for blocking / unsubscribing (This code is safe for comparison) # noqa: E501 :return: The code of this GetTransacBlockedContactsReason. # noqa: E501 :rtype: str """ return self._code @code.setter def code(self, code): """Sets the code of this GetTransacBlockedContactsReason. Reason code for blocking / unsubscribing (This code is safe for comparison) # noqa: E501 :param code: The code of this GetTransacBlockedContactsReason. # noqa: E501 :type: str """ allowed_values = ["unsubscribedViaMA", "unsubscribedViaEmail", "adminBlocked", "unsubscribedViaApi", "hardBounce", "contactFlaggedAsSpam"] # noqa: E501 if code not in allowed_values: raise ValueError( "Invalid value for `code` ({0}), must be one of {1}" # noqa: E501 .format(code, allowed_values) ) self._code = code @property def message(self): """Gets the message of this GetTransacBlockedContactsReason. # noqa: E501 Reason for blocking / unsubscribing (This string is not safe for comparison) # noqa: E501 :return: The message of this GetTransacBlockedContactsReason. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): """Sets the message of this GetTransacBlockedContactsReason. Reason for blocking / unsubscribing (This string is not safe for comparison) # noqa: E501 :param message: The message of this GetTransacBlockedContactsReason. # noqa: E501 :type: str """ self._message = message 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(GetTransacBlockedContactsReason, 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, GetTransacBlockedContactsReason): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(code=None, message=None)
59,492
sib_api_v3_sdk.models.get_transac_blocked_contacts_reason
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacBlockedContactsReason): return False return self.__dict__ == other.__dict__
(self, other)
59,493
sib_api_v3_sdk.models.get_transac_blocked_contacts_reason
__init__
GetTransacBlockedContactsReason - a model defined in Swagger
def __init__(self, code=None, message=None): # noqa: E501 """GetTransacBlockedContactsReason - a model defined in Swagger""" # noqa: E501 self._code = None self._message = None self.discriminator = None if code is not None: self.code = code if message is not None: self.message = message
(self, code=None, message=None)
59,496
sib_api_v3_sdk.models.get_transac_blocked_contacts_reason
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(GetTransacBlockedContactsReason, dict): for key, value in self.items(): result[key] = value return result
(self)
59,498
sib_api_v3_sdk.models.get_transac_email_content
GetTransacEmailContent
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacEmailContent(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'email': 'str', 'subject': 'str', 'template_id': 'int', '_date': 'str', 'events': 'list[GetTransacEmailContentEvents]', 'body': 'str', 'attachment_count': 'int' } attribute_map = { 'email': 'email', 'subject': 'subject', 'template_id': 'templateId', '_date': 'date', 'events': 'events', 'body': 'body', 'attachment_count': 'attachmentCount' } def __init__(self, email=None, subject=None, template_id=None, _date=None, events=None, body=None, attachment_count=None): # noqa: E501 """GetTransacEmailContent - a model defined in Swagger""" # noqa: E501 self._email = None self._subject = None self._template_id = None self.__date = None self._events = None self._body = None self._attachment_count = None self.discriminator = None self.email = email self.subject = subject if template_id is not None: self.template_id = template_id self._date = _date self.events = events self.body = body self.attachment_count = attachment_count @property def email(self): """Gets the email of this GetTransacEmailContent. # noqa: E501 Email address to which transactional email has been sent # noqa: E501 :return: The email of this GetTransacEmailContent. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this GetTransacEmailContent. Email address to which transactional email has been sent # noqa: E501 :param email: The email of this GetTransacEmailContent. # 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 subject(self): """Gets the subject of this GetTransacEmailContent. # noqa: E501 Subject of the sent email # noqa: E501 :return: The subject of this GetTransacEmailContent. # noqa: E501 :rtype: str """ return self._subject @subject.setter def subject(self, subject): """Sets the subject of this GetTransacEmailContent. Subject of the sent email # noqa: E501 :param subject: The subject of this GetTransacEmailContent. # 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 template_id(self): """Gets the template_id of this GetTransacEmailContent. # noqa: E501 Id of the template # noqa: E501 :return: The template_id of this GetTransacEmailContent. # noqa: E501 :rtype: int """ return self._template_id @template_id.setter def template_id(self, template_id): """Sets the template_id of this GetTransacEmailContent. Id of the template # noqa: E501 :param template_id: The template_id of this GetTransacEmailContent. # noqa: E501 :type: int """ self._template_id = template_id @property def _date(self): """Gets the _date of this GetTransacEmailContent. # noqa: E501 Date on which transactional email was sent # noqa: E501 :return: The _date of this GetTransacEmailContent. # noqa: E501 :rtype: str """ return self.__date @_date.setter def _date(self, _date): """Sets the _date of this GetTransacEmailContent. Date on which transactional email was sent # noqa: E501 :param _date: The _date of this GetTransacEmailContent. # noqa: E501 :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 self.__date = _date @property def events(self): """Gets the events of this GetTransacEmailContent. # noqa: E501 Series of events which occurred on the transactional email # noqa: E501 :return: The events of this GetTransacEmailContent. # noqa: E501 :rtype: list[GetTransacEmailContentEvents] """ return self._events @events.setter def events(self, events): """Sets the events of this GetTransacEmailContent. Series of events which occurred on the transactional email # noqa: E501 :param events: The events of this GetTransacEmailContent. # noqa: E501 :type: list[GetTransacEmailContentEvents] """ if events is None: raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501 self._events = events @property def body(self): """Gets the body of this GetTransacEmailContent. # noqa: E501 Actual content of the transactional email that has been sent # noqa: E501 :return: The body of this GetTransacEmailContent. # noqa: E501 :rtype: str """ return self._body @body.setter def body(self, body): """Sets the body of this GetTransacEmailContent. Actual content of the transactional email that has been sent # noqa: E501 :param body: The body of this GetTransacEmailContent. # noqa: E501 :type: str """ if body is None: raise ValueError("Invalid value for `body`, must not be `None`") # noqa: E501 self._body = body @property def attachment_count(self): """Gets the attachment_count of this GetTransacEmailContent. # noqa: E501 Count of the attachments that were sent in the email # noqa: E501 :return: The attachment_count of this GetTransacEmailContent. # noqa: E501 :rtype: int """ return self._attachment_count @attachment_count.setter def attachment_count(self, attachment_count): """Sets the attachment_count of this GetTransacEmailContent. Count of the attachments that were sent in the email # noqa: E501 :param attachment_count: The attachment_count of this GetTransacEmailContent. # noqa: E501 :type: int """ if attachment_count is None: raise ValueError("Invalid value for `attachment_count`, must not be `None`") # noqa: E501 self._attachment_count = attachment_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(GetTransacEmailContent, 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, GetTransacEmailContent): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(email=None, subject=None, template_id=None, _date=None, events=None, body=None, attachment_count=None)
59,499
sib_api_v3_sdk.models.get_transac_email_content
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacEmailContent): return False return self.__dict__ == other.__dict__
(self, other)
59,500
sib_api_v3_sdk.models.get_transac_email_content
__init__
GetTransacEmailContent - a model defined in Swagger
def __init__(self, email=None, subject=None, template_id=None, _date=None, events=None, body=None, attachment_count=None): # noqa: E501 """GetTransacEmailContent - a model defined in Swagger""" # noqa: E501 self._email = None self._subject = None self._template_id = None self.__date = None self._events = None self._body = None self._attachment_count = None self.discriminator = None self.email = email self.subject = subject if template_id is not None: self.template_id = template_id self._date = _date self.events = events self.body = body self.attachment_count = attachment_count
(self, email=None, subject=None, template_id=None, _date=None, events=None, body=None, attachment_count=None)
59,503
sib_api_v3_sdk.models.get_transac_email_content
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(GetTransacEmailContent, dict): for key, value in self.items(): result[key] = value return result
(self)
59,505
sib_api_v3_sdk.models.get_transac_email_content_events
GetTransacEmailContentEvents
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacEmailContentEvents(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', 'time': 'str' } attribute_map = { 'name': 'name', 'time': 'time' } def __init__(self, name=None, time=None): # noqa: E501 """GetTransacEmailContentEvents - a model defined in Swagger""" # noqa: E501 self._name = None self._time = None self.discriminator = None self.name = name self.time = time @property def name(self): """Gets the name of this GetTransacEmailContentEvents. # noqa: E501 Name of the event that occurred on the sent email # noqa: E501 :return: The name of this GetTransacEmailContentEvents. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this GetTransacEmailContentEvents. Name of the event that occurred on the sent email # noqa: E501 :param name: The name of this GetTransacEmailContentEvents. # 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 time(self): """Gets the time of this GetTransacEmailContentEvents. # noqa: E501 Time at which the event occurred # noqa: E501 :return: The time of this GetTransacEmailContentEvents. # noqa: E501 :rtype: str """ return self._time @time.setter def time(self, time): """Sets the time of this GetTransacEmailContentEvents. Time at which the event occurred # noqa: E501 :param time: The time of this GetTransacEmailContentEvents. # noqa: E501 :type: str """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 self._time = time 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(GetTransacEmailContentEvents, 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, GetTransacEmailContentEvents): 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, time=None)
59,506
sib_api_v3_sdk.models.get_transac_email_content_events
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacEmailContentEvents): return False return self.__dict__ == other.__dict__
(self, other)
59,507
sib_api_v3_sdk.models.get_transac_email_content_events
__init__
GetTransacEmailContentEvents - a model defined in Swagger
def __init__(self, name=None, time=None): # noqa: E501 """GetTransacEmailContentEvents - a model defined in Swagger""" # noqa: E501 self._name = None self._time = None self.discriminator = None self.name = name self.time = time
(self, name=None, time=None)
59,510
sib_api_v3_sdk.models.get_transac_email_content_events
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacEmailContentEvents, dict): for key, value in self.items(): result[key] = value return result
(self)
59,512
sib_api_v3_sdk.models.get_transac_emails_list
GetTransacEmailsList
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacEmailsList(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'count': 'int', 'transactional_emails': 'list[GetTransacEmailsListTransactionalEmails]' } attribute_map = { 'count': 'count', 'transactional_emails': 'transactionalEmails' } def __init__(self, count=None, transactional_emails=None): # noqa: E501 """GetTransacEmailsList - a model defined in Swagger""" # noqa: E501 self._count = None self._transactional_emails = None self.discriminator = None if count is not None: self.count = count if transactional_emails is not None: self.transactional_emails = transactional_emails @property def count(self): """Gets the count of this GetTransacEmailsList. # noqa: E501 Total number of transactional emails available on your account according to the passed filter # noqa: E501 :return: The count of this GetTransacEmailsList. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): """Sets the count of this GetTransacEmailsList. Total number of transactional emails available on your account according to the passed filter # noqa: E501 :param count: The count of this GetTransacEmailsList. # noqa: E501 :type: int """ self._count = count @property def transactional_emails(self): """Gets the transactional_emails of this GetTransacEmailsList. # noqa: E501 :return: The transactional_emails of this GetTransacEmailsList. # noqa: E501 :rtype: list[GetTransacEmailsListTransactionalEmails] """ return self._transactional_emails @transactional_emails.setter def transactional_emails(self, transactional_emails): """Sets the transactional_emails of this GetTransacEmailsList. :param transactional_emails: The transactional_emails of this GetTransacEmailsList. # noqa: E501 :type: list[GetTransacEmailsListTransactionalEmails] """ self._transactional_emails = transactional_emails 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(GetTransacEmailsList, 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, GetTransacEmailsList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(count=None, transactional_emails=None)
59,513
sib_api_v3_sdk.models.get_transac_emails_list
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacEmailsList): return False return self.__dict__ == other.__dict__
(self, other)
59,514
sib_api_v3_sdk.models.get_transac_emails_list
__init__
GetTransacEmailsList - a model defined in Swagger
def __init__(self, count=None, transactional_emails=None): # noqa: E501 """GetTransacEmailsList - a model defined in Swagger""" # noqa: E501 self._count = None self._transactional_emails = None self.discriminator = None if count is not None: self.count = count if transactional_emails is not None: self.transactional_emails = transactional_emails
(self, count=None, transactional_emails=None)
59,517
sib_api_v3_sdk.models.get_transac_emails_list
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacEmailsList, dict): for key, value in self.items(): result[key] = value return result
(self)
59,519
sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails
GetTransacEmailsListTransactionalEmails
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacEmailsListTransactionalEmails(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'email': 'str', 'subject': 'str', 'template_id': 'int', 'message_id': 'str', 'uuid': 'str', '_date': 'str', '_from': 'str', 'tags': 'list[str]' } attribute_map = { 'email': 'email', 'subject': 'subject', 'template_id': 'templateId', 'message_id': 'messageId', 'uuid': 'uuid', '_date': 'date', '_from': 'from', 'tags': 'tags' } def __init__(self, email=None, subject=None, template_id=None, message_id=None, uuid=None, _date=None, _from=None, tags=None): # noqa: E501 """GetTransacEmailsListTransactionalEmails - a model defined in Swagger""" # noqa: E501 self._email = None self._subject = None self._template_id = None self._message_id = None self._uuid = None self.__date = None self.__from = None self._tags = None self.discriminator = None self.email = email self.subject = subject if template_id is not None: self.template_id = template_id self.message_id = message_id self.uuid = uuid self._date = _date if _from is not None: self._from = _from if tags is not None: self.tags = tags @property def email(self): """Gets the email of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Email address to which transactional email has been sent # noqa: E501 :return: The email of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this GetTransacEmailsListTransactionalEmails. Email address to which transactional email has been sent # noqa: E501 :param email: The email of this GetTransacEmailsListTransactionalEmails. # 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 subject(self): """Gets the subject of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Subject of the sent email # noqa: E501 :return: The subject of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self._subject @subject.setter def subject(self, subject): """Sets the subject of this GetTransacEmailsListTransactionalEmails. Subject of the sent email # noqa: E501 :param subject: The subject of this GetTransacEmailsListTransactionalEmails. # 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 template_id(self): """Gets the template_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Id of the template # noqa: E501 :return: The template_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: int """ return self._template_id @template_id.setter def template_id(self, template_id): """Sets the template_id of this GetTransacEmailsListTransactionalEmails. Id of the template # noqa: E501 :param template_id: The template_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: int """ self._template_id = template_id @property def message_id(self): """Gets the message_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Message Id of the sent email # noqa: E501 :return: The message_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self._message_id @message_id.setter def message_id(self, message_id): """Sets the message_id of this GetTransacEmailsListTransactionalEmails. Message Id of the sent email # noqa: E501 :param message_id: The message_id of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: str """ if message_id is None: raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 self._message_id = message_id @property def uuid(self): """Gets the uuid of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Unique id of the email sent to a particular contact # noqa: E501 :return: The uuid of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self._uuid @uuid.setter def uuid(self, uuid): """Sets the uuid of this GetTransacEmailsListTransactionalEmails. Unique id of the email sent to a particular contact # noqa: E501 :param uuid: The uuid of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: str """ if uuid is None: raise ValueError("Invalid value for `uuid`, must not be `None`") # noqa: E501 self._uuid = uuid @property def _date(self): """Gets the _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Date on which transactional email was sent # noqa: E501 :return: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self.__date @_date.setter def _date(self, _date): """Sets the _date of this GetTransacEmailsListTransactionalEmails. Date on which transactional email was sent # noqa: E501 :param _date: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 self.__date = _date @property def _from(self): """Gets the _from of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Email address of the sender from which the email was sent # noqa: E501 :return: The _from of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: str """ return self.__from @_from.setter def _from(self, _from): """Sets the _from of this GetTransacEmailsListTransactionalEmails. Email address of the sender from which the email was sent # noqa: E501 :param _from: The _from of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: str """ self.__from = _from @property def tags(self): """Gets the tags of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Tags used for your email # noqa: E501 :return: The tags of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: list[str] """ return self._tags @tags.setter def tags(self, tags): """Sets the tags of this GetTransacEmailsListTransactionalEmails. Tags used for your email # noqa: E501 :param tags: The tags of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: list[str] """ self._tags = tags 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(GetTransacEmailsListTransactionalEmails, 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, GetTransacEmailsListTransactionalEmails): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(email=None, subject=None, template_id=None, message_id=None, uuid=None, _date=None, _from=None, tags=None)
59,520
sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacEmailsListTransactionalEmails): return False return self.__dict__ == other.__dict__
(self, other)
59,521
sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails
__init__
GetTransacEmailsListTransactionalEmails - a model defined in Swagger
def __init__(self, email=None, subject=None, template_id=None, message_id=None, uuid=None, _date=None, _from=None, tags=None): # noqa: E501 """GetTransacEmailsListTransactionalEmails - a model defined in Swagger""" # noqa: E501 self._email = None self._subject = None self._template_id = None self._message_id = None self._uuid = None self.__date = None self.__from = None self._tags = None self.discriminator = None self.email = email self.subject = subject if template_id is not None: self.template_id = template_id self.message_id = message_id self.uuid = uuid self._date = _date if _from is not None: self._from = _from if tags is not None: self.tags = tags
(self, email=None, subject=None, template_id=None, message_id=None, uuid=None, _date=None, _from=None, tags=None)
59,524
sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails
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(GetTransacEmailsListTransactionalEmails, dict): for key, value in self.items(): result[key] = value return result
(self)
59,526
sib_api_v3_sdk.models.get_transac_sms_report
GetTransacSmsReport
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacSmsReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'reports': 'list[GetTransacSmsReportReports]' } attribute_map = { 'reports': 'reports' } def __init__(self, reports=None): # noqa: E501 """GetTransacSmsReport - a model defined in Swagger""" # noqa: E501 self._reports = None self.discriminator = None if reports is not None: self.reports = reports @property def reports(self): """Gets the reports of this GetTransacSmsReport. # noqa: E501 :return: The reports of this GetTransacSmsReport. # noqa: E501 :rtype: list[GetTransacSmsReportReports] """ return self._reports @reports.setter def reports(self, reports): """Sets the reports of this GetTransacSmsReport. :param reports: The reports of this GetTransacSmsReport. # noqa: E501 :type: list[GetTransacSmsReportReports] """ self._reports = reports def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacSmsReport, 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, GetTransacSmsReport): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(reports=None)
59,527
sib_api_v3_sdk.models.get_transac_sms_report
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacSmsReport): return False return self.__dict__ == other.__dict__
(self, other)
59,528
sib_api_v3_sdk.models.get_transac_sms_report
__init__
GetTransacSmsReport - a model defined in Swagger
def __init__(self, reports=None): # noqa: E501 """GetTransacSmsReport - a model defined in Swagger""" # noqa: E501 self._reports = None self.discriminator = None if reports is not None: self.reports = reports
(self, reports=None)
59,531
sib_api_v3_sdk.models.get_transac_sms_report
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacSmsReport, dict): for key, value in self.items(): result[key] = value return result
(self)
59,533
sib_api_v3_sdk.models.get_transac_sms_report_reports
GetTransacSmsReportReports
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetTransacSmsReportReports(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { '_date': 'date', 'requests': 'int', 'delivered': 'int', 'hard_bounces': 'int', 'soft_bounces': 'int', 'blocked': 'int', 'unsubscribed': 'int', 'replied': 'int', 'accepted': 'int', 'rejected': 'int' } attribute_map = { '_date': 'date', 'requests': 'requests', 'delivered': 'delivered', 'hard_bounces': 'hardBounces', 'soft_bounces': 'softBounces', 'blocked': 'blocked', 'unsubscribed': 'unsubscribed', 'replied': 'replied', 'accepted': 'accepted', 'rejected': 'rejected' } def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacSmsReportReports - a model defined in Swagger""" # noqa: E501 self.__date = None self._requests = None self._delivered = None self._hard_bounces = None self._soft_bounces = None self._blocked = None self._unsubscribed = None self._replied = None self._accepted = None self._rejected = None self.discriminator = None if _date is not None: self._date = _date if requests is not None: self.requests = requests if delivered is not None: self.delivered = delivered if hard_bounces is not None: self.hard_bounces = hard_bounces if soft_bounces is not None: self.soft_bounces = soft_bounces if blocked is not None: self.blocked = blocked if unsubscribed is not None: self.unsubscribed = unsubscribed if replied is not None: self.replied = replied if accepted is not None: self.accepted = accepted if rejected is not None: self.rejected = rejected @property def _date(self): """Gets the _date of this GetTransacSmsReportReports. # noqa: E501 Date for which statistics are retrieved # noqa: E501 :return: The _date of this GetTransacSmsReportReports. # noqa: E501 :rtype: date """ return self.__date @_date.setter def _date(self, _date): """Sets the _date of this GetTransacSmsReportReports. Date for which statistics are retrieved # noqa: E501 :param _date: The _date of this GetTransacSmsReportReports. # noqa: E501 :type: date """ self.__date = _date @property def requests(self): """Gets the requests of this GetTransacSmsReportReports. # noqa: E501 Number of requests for the date # noqa: E501 :return: The requests of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._requests @requests.setter def requests(self, requests): """Sets the requests of this GetTransacSmsReportReports. Number of requests for the date # noqa: E501 :param requests: The requests of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._requests = requests @property def delivered(self): """Gets the delivered of this GetTransacSmsReportReports. # noqa: E501 Number of delivered SMS for the date # noqa: E501 :return: The delivered of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._delivered @delivered.setter def delivered(self, delivered): """Sets the delivered of this GetTransacSmsReportReports. Number of delivered SMS for the date # noqa: E501 :param delivered: The delivered of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._delivered = delivered @property def hard_bounces(self): """Gets the hard_bounces of this GetTransacSmsReportReports. # noqa: E501 Number of hardbounces for the date # noqa: E501 :return: The hard_bounces of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._hard_bounces @hard_bounces.setter def hard_bounces(self, hard_bounces): """Sets the hard_bounces of this GetTransacSmsReportReports. Number of hardbounces for the date # noqa: E501 :param hard_bounces: The hard_bounces of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._hard_bounces = hard_bounces @property def soft_bounces(self): """Gets the soft_bounces of this GetTransacSmsReportReports. # noqa: E501 Number of softbounces for the date # noqa: E501 :return: The soft_bounces of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._soft_bounces @soft_bounces.setter def soft_bounces(self, soft_bounces): """Sets the soft_bounces of this GetTransacSmsReportReports. Number of softbounces for the date # noqa: E501 :param soft_bounces: The soft_bounces of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._soft_bounces = soft_bounces @property def blocked(self): """Gets the blocked of this GetTransacSmsReportReports. # noqa: E501 Number of blocked contact for the date # noqa: E501 :return: The blocked of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._blocked @blocked.setter def blocked(self, blocked): """Sets the blocked of this GetTransacSmsReportReports. Number of blocked contact for the date # noqa: E501 :param blocked: The blocked of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._blocked = blocked @property def unsubscribed(self): """Gets the unsubscribed of this GetTransacSmsReportReports. # noqa: E501 Number of unsubscription for the date # noqa: E501 :return: The unsubscribed of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._unsubscribed @unsubscribed.setter def unsubscribed(self, unsubscribed): """Sets the unsubscribed of this GetTransacSmsReportReports. Number of unsubscription for the date # noqa: E501 :param unsubscribed: The unsubscribed of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._unsubscribed = unsubscribed @property def replied(self): """Gets the replied of this GetTransacSmsReportReports. # noqa: E501 Number of answered SMS for the date # noqa: E501 :return: The replied of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._replied @replied.setter def replied(self, replied): """Sets the replied of this GetTransacSmsReportReports. Number of answered SMS for the date # noqa: E501 :param replied: The replied of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._replied = replied @property def accepted(self): """Gets the accepted of this GetTransacSmsReportReports. # noqa: E501 Number of accepted for the date # noqa: E501 :return: The accepted of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._accepted @accepted.setter def accepted(self, accepted): """Sets the accepted of this GetTransacSmsReportReports. Number of accepted for the date # noqa: E501 :param accepted: The accepted of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._accepted = accepted @property def rejected(self): """Gets the rejected of this GetTransacSmsReportReports. # noqa: E501 Number of rejected for the date # noqa: E501 :return: The rejected of this GetTransacSmsReportReports. # noqa: E501 :rtype: int """ return self._rejected @rejected.setter def rejected(self, rejected): """Sets the rejected of this GetTransacSmsReportReports. Number of rejected for the date # noqa: E501 :param rejected: The rejected of this GetTransacSmsReportReports. # noqa: E501 :type: int """ self._rejected = rejected 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(GetTransacSmsReportReports, 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, GetTransacSmsReportReports): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(_date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None)
59,534
sib_api_v3_sdk.models.get_transac_sms_report_reports
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetTransacSmsReportReports): return False return self.__dict__ == other.__dict__
(self, other)
59,535
sib_api_v3_sdk.models.get_transac_sms_report_reports
__init__
GetTransacSmsReportReports - a model defined in Swagger
def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacSmsReportReports - a model defined in Swagger""" # noqa: E501 self.__date = None self._requests = None self._delivered = None self._hard_bounces = None self._soft_bounces = None self._blocked = None self._unsubscribed = None self._replied = None self._accepted = None self._rejected = None self.discriminator = None if _date is not None: self._date = _date if requests is not None: self.requests = requests if delivered is not None: self.delivered = delivered if hard_bounces is not None: self.hard_bounces = hard_bounces if soft_bounces is not None: self.soft_bounces = soft_bounces if blocked is not None: self.blocked = blocked if unsubscribed is not None: self.unsubscribed = unsubscribed if replied is not None: self.replied = replied if accepted is not None: self.accepted = accepted if rejected is not None: self.rejected = rejected
(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None)
59,538
sib_api_v3_sdk.models.get_transac_sms_report_reports
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetTransacSmsReportReports, dict): for key, value in self.items(): result[key] = value return result
(self)
59,540
sib_api_v3_sdk.models.get_wa_templates
GetWATemplates
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWATemplates(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 = { 'templates': 'list[GetWATemplatesTemplates]', 'count': 'int' } attribute_map = { 'templates': 'templates', 'count': 'count' } def __init__(self, templates=None, count=None): # noqa: E501 """GetWATemplates - a model defined in Swagger""" # noqa: E501 self._templates = None self._count = None self.discriminator = None self.templates = templates self.count = count @property def templates(self): """Gets the templates of this GetWATemplates. # noqa: E501 :return: The templates of this GetWATemplates. # noqa: E501 :rtype: list[GetWATemplatesTemplates] """ return self._templates @templates.setter def templates(self, templates): """Sets the templates of this GetWATemplates. :param templates: The templates of this GetWATemplates. # noqa: E501 :type: list[GetWATemplatesTemplates] """ if templates is None: raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 self._templates = templates @property def count(self): """Gets the count of this GetWATemplates. # noqa: E501 Number of whatsapp templates retrived # noqa: E501 :return: The count of this GetWATemplates. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): """Sets the count of this GetWATemplates. Number of whatsapp templates retrived # noqa: E501 :param count: The count of this GetWATemplates. # noqa: E501 :type: int """ if count is None: raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWATemplates, 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, GetWATemplates): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(templates=None, count=None)
59,541
sib_api_v3_sdk.models.get_wa_templates
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWATemplates): return False return self.__dict__ == other.__dict__
(self, other)
59,542
sib_api_v3_sdk.models.get_wa_templates
__init__
GetWATemplates - a model defined in Swagger
def __init__(self, templates=None, count=None): # noqa: E501 """GetWATemplates - a model defined in Swagger""" # noqa: E501 self._templates = None self._count = None self.discriminator = None self.templates = templates self.count = count
(self, templates=None, count=None)
59,545
sib_api_v3_sdk.models.get_wa_templates
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(GetWATemplates, dict): for key, value in self.items(): result[key] = value return result
(self)
59,547
sib_api_v3_sdk.models.get_wa_templates_templates
GetWATemplatesTemplates
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWATemplatesTemplates(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', 'status': 'str', 'language': 'str', 'category': 'str', 'error_reason': 'str', 'created_at': 'str', 'modified_at': 'str' } attribute_map = { 'id': 'id', 'name': 'name', 'status': 'status', 'language': 'language', 'category': 'category', 'error_reason': 'errorReason', 'created_at': 'createdAt', 'modified_at': 'modifiedAt' } def __init__(self, id=None, name=None, status=None, language=None, category=None, error_reason=None, created_at=None, modified_at=None): # noqa: E501 """GetWATemplatesTemplates - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._status = None self._language = None self._category = None self._error_reason = None self._created_at = None self._modified_at = None self.discriminator = None self.id = id self.name = name self.status = status self.language = language self.category = category if error_reason is not None: self.error_reason = error_reason self.created_at = created_at self.modified_at = modified_at @property def id(self): """Gets the id of this GetWATemplatesTemplates. # noqa: E501 id of the template # noqa: E501 :return: The id of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this GetWATemplatesTemplates. id of the template # noqa: E501 :param id: The id of this GetWATemplatesTemplates. # 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 GetWATemplatesTemplates. # noqa: E501 Name of the Whatsapp template # noqa: E501 :return: The name of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this GetWATemplatesTemplates. Name of the Whatsapp template # noqa: E501 :param name: The name of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def status(self): """Gets the status of this GetWATemplatesTemplates. # noqa: E501 Status of the Whatsapp template # noqa: E501 :return: The status of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this GetWATemplatesTemplates. Status of the Whatsapp template # noqa: E501 :param status: The status of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if status is None: raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @property def language(self): """Gets the language of this GetWATemplatesTemplates. # noqa: E501 Language in which template exists # noqa: E501 :return: The language of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._language @language.setter def language(self, language): """Sets the language of this GetWATemplatesTemplates. Language in which template exists # noqa: E501 :param language: The language of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if language is None: raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 self._language = language @property def category(self): """Gets the category of this GetWATemplatesTemplates. # noqa: E501 category of the template # noqa: E501 :return: The category of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._category @category.setter def category(self, category): """Sets the category of this GetWATemplatesTemplates. category of the template # noqa: E501 :param category: The category of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if category is None: raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 self._category = category @property def error_reason(self): """Gets the error_reason of this GetWATemplatesTemplates. # noqa: E501 Error reason in the template creation # noqa: E501 :return: The error_reason of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._error_reason @error_reason.setter def error_reason(self, error_reason): """Sets the error_reason of this GetWATemplatesTemplates. Error reason in the template creation # noqa: E501 :param error_reason: The error_reason of this GetWATemplatesTemplates. # noqa: E501 :type: str """ self._error_reason = error_reason @property def created_at(self): """Gets the created_at of this GetWATemplatesTemplates. # noqa: E501 Creation UTC date-time of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this GetWATemplatesTemplates. Creation UTC date-time of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def modified_at(self): """Gets the modified_at of this GetWATemplatesTemplates. # noqa: E501 UTC date-time of last modification of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetWATemplatesTemplates. # noqa: E501 :rtype: str """ return self._modified_at @modified_at.setter def modified_at(self, modified_at): """Sets the modified_at of this GetWATemplatesTemplates. UTC date-time of last modification of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetWATemplatesTemplates. # noqa: E501 :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 self._modified_at = modified_at def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWATemplatesTemplates, 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, GetWATemplatesTemplates): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(id=None, name=None, status=None, language=None, category=None, error_reason=None, created_at=None, modified_at=None)
59,548
sib_api_v3_sdk.models.get_wa_templates_templates
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWATemplatesTemplates): return False return self.__dict__ == other.__dict__
(self, other)
59,549
sib_api_v3_sdk.models.get_wa_templates_templates
__init__
GetWATemplatesTemplates - a model defined in Swagger
def __init__(self, id=None, name=None, status=None, language=None, category=None, error_reason=None, created_at=None, modified_at=None): # noqa: E501 """GetWATemplatesTemplates - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._status = None self._language = None self._category = None self._error_reason = None self._created_at = None self._modified_at = None self.discriminator = None self.id = id self.name = name self.status = status self.language = language self.category = category if error_reason is not None: self.error_reason = error_reason self.created_at = created_at self.modified_at = modified_at
(self, id=None, name=None, status=None, language=None, category=None, error_reason=None, created_at=None, modified_at=None)
59,552
sib_api_v3_sdk.models.get_wa_templates_templates
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(GetWATemplatesTemplates, dict): for key, value in self.items(): result[key] = value return result
(self)
59,554
sib_api_v3_sdk.models.get_webhook
GetWebhook
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWebhook(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', 'id': 'int', 'description': 'str', 'events': 'list[str]', 'type': 'str', 'created_at': 'str', 'modified_at': 'str' } attribute_map = { 'url': 'url', 'id': 'id', 'description': 'description', 'events': 'events', 'type': 'type', 'created_at': 'createdAt', 'modified_at': 'modifiedAt' } def __init__(self, url=None, id=None, description=None, events=None, type=None, created_at=None, modified_at=None): # noqa: E501 """GetWebhook - a model defined in Swagger""" # noqa: E501 self._url = None self._id = None self._description = None self._events = None self._type = None self._created_at = None self._modified_at = None self.discriminator = None self.url = url self.id = id self.description = description self.events = events self.type = type self.created_at = created_at self.modified_at = modified_at @property def url(self): """Gets the url of this GetWebhook. # noqa: E501 URL of the webhook # noqa: E501 :return: The url of this GetWebhook. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): """Sets the url of this GetWebhook. URL of the webhook # noqa: E501 :param url: The url of this GetWebhook. # 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 id(self): """Gets the id of this GetWebhook. # noqa: E501 ID of the webhook # noqa: E501 :return: The id of this GetWebhook. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): """Sets the id of this GetWebhook. ID of the webhook # noqa: E501 :param id: The id of this GetWebhook. # 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 description(self): """Gets the description of this GetWebhook. # noqa: E501 Description of the webhook # noqa: E501 :return: The description of this GetWebhook. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): """Sets the description of this GetWebhook. Description of the webhook # noqa: E501 :param description: The description of this GetWebhook. # noqa: E501 :type: str """ if description is None: raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description @property def events(self): """Gets the events of this GetWebhook. # noqa: E501 :return: The events of this GetWebhook. # noqa: E501 :rtype: list[str] """ return self._events @events.setter def events(self, events): """Sets the events of this GetWebhook. :param events: The events of this GetWebhook. # noqa: E501 :type: list[str] """ if events is None: raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501 self._events = events @property def type(self): """Gets the type of this GetWebhook. # noqa: E501 Type of webhook (marketing or transactional) # noqa: E501 :return: The type of this GetWebhook. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): """Sets the type of this GetWebhook. Type of webhook (marketing or transactional) # noqa: E501 :param type: The type of this GetWebhook. # noqa: E501 :type: str """ if type is None: raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 allowed_values = ["marketing", "transactional"] # 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 created_at(self): """Gets the created_at of this GetWebhook. # noqa: E501 Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetWebhook. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this GetWebhook. Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetWebhook. # noqa: E501 :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def modified_at(self): """Gets the modified_at of this GetWebhook. # noqa: E501 Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetWebhook. # noqa: E501 :rtype: str """ return self._modified_at @modified_at.setter def modified_at(self, modified_at): """Sets the modified_at of this GetWebhook. Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetWebhook. # noqa: E501 :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 self._modified_at = modified_at def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWebhook, 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, GetWebhook): 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, id=None, description=None, events=None, type=None, created_at=None, modified_at=None)
59,555
sib_api_v3_sdk.models.get_webhook
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWebhook): return False return self.__dict__ == other.__dict__
(self, other)
59,556
sib_api_v3_sdk.models.get_webhook
__init__
GetWebhook - a model defined in Swagger
def __init__(self, url=None, id=None, description=None, events=None, type=None, created_at=None, modified_at=None): # noqa: E501 """GetWebhook - a model defined in Swagger""" # noqa: E501 self._url = None self._id = None self._description = None self._events = None self._type = None self._created_at = None self._modified_at = None self.discriminator = None self.url = url self.id = id self.description = description self.events = events self.type = type self.created_at = created_at self.modified_at = modified_at
(self, url=None, id=None, description=None, events=None, type=None, created_at=None, modified_at=None)
59,559
sib_api_v3_sdk.models.get_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(GetWebhook, dict): for key, value in self.items(): result[key] = value return result
(self)
59,561
sib_api_v3_sdk.models.get_webhooks
GetWebhooks
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWebhooks(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 = { 'webhooks': 'list[object]' } attribute_map = { 'webhooks': 'webhooks' } def __init__(self, webhooks=None): # noqa: E501 """GetWebhooks - a model defined in Swagger""" # noqa: E501 self._webhooks = None self.discriminator = None self.webhooks = webhooks @property def webhooks(self): """Gets the webhooks of this GetWebhooks. # noqa: E501 :return: The webhooks of this GetWebhooks. # noqa: E501 :rtype: list[object] """ return self._webhooks @webhooks.setter def webhooks(self, webhooks): """Sets the webhooks of this GetWebhooks. :param webhooks: The webhooks of this GetWebhooks. # noqa: E501 :type: list[object] """ if webhooks is None: raise ValueError("Invalid value for `webhooks`, must not be `None`") # noqa: E501 self._webhooks = webhooks 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(GetWebhooks, 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, GetWebhooks): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(webhooks=None)
59,562
sib_api_v3_sdk.models.get_webhooks
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWebhooks): return False return self.__dict__ == other.__dict__
(self, other)
59,563
sib_api_v3_sdk.models.get_webhooks
__init__
GetWebhooks - a model defined in Swagger
def __init__(self, webhooks=None): # noqa: E501 """GetWebhooks - a model defined in Swagger""" # noqa: E501 self._webhooks = None self.discriminator = None self.webhooks = webhooks
(self, webhooks=None)
59,566
sib_api_v3_sdk.models.get_webhooks
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(GetWebhooks, dict): for key, value in self.items(): result[key] = value return result
(self)
59,568
sib_api_v3_sdk.models.get_whatsapp_campaign_overview
GetWhatsappCampaignOverview
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWhatsappCampaignOverview(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', 'campaign_name': 'str', 'campaign_status': 'str', 'scheduled_at': 'str', 'sender_number': 'str', 'stats': 'WhatsappCampStats', 'template': 'WhatsappCampTemplate', 'created_at': 'str', 'modified_at': 'str' } attribute_map = { 'id': 'id', 'campaign_name': 'campaignName', 'campaign_status': 'campaignStatus', 'scheduled_at': 'scheduledAt', 'sender_number': 'senderNumber', 'stats': 'stats', 'template': 'template', 'created_at': 'createdAt', 'modified_at': 'modifiedAt' } def __init__(self, id=None, campaign_name=None, campaign_status=None, scheduled_at=None, sender_number=None, stats=None, template=None, created_at=None, modified_at=None): # noqa: E501 """GetWhatsappCampaignOverview - a model defined in Swagger""" # noqa: E501 self._id = None self._campaign_name = None self._campaign_status = None self._scheduled_at = None self._sender_number = None self._stats = None self._template = None self._created_at = None self._modified_at = None self.discriminator = None self.id = id self.campaign_name = campaign_name self.campaign_status = campaign_status if scheduled_at is not None: self.scheduled_at = scheduled_at self.sender_number = sender_number if stats is not None: self.stats = stats self.template = template self.created_at = created_at self.modified_at = modified_at @property def id(self): """Gets the id of this GetWhatsappCampaignOverview. # noqa: E501 ID of the Whatsapp Campaign # noqa: E501 :return: The id of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): """Sets the id of this GetWhatsappCampaignOverview. ID of the Whatsapp Campaign # noqa: E501 :param id: The id of this GetWhatsappCampaignOverview. # 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 campaign_name(self): """Gets the campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 Name of the Whatsapp Campaign # noqa: E501 :return: The campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._campaign_name @campaign_name.setter def campaign_name(self, campaign_name): """Sets the campaign_name of this GetWhatsappCampaignOverview. Name of the Whatsapp Campaign # noqa: E501 :param campaign_name: The campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ if campaign_name is None: raise ValueError("Invalid value for `campaign_name`, must not be `None`") # noqa: E501 self._campaign_name = campaign_name @property def campaign_status(self): """Gets the campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 Status of the Whatsapp Campaign # noqa: E501 :return: The campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._campaign_status @campaign_status.setter def campaign_status(self, campaign_status): """Sets the campaign_status of this GetWhatsappCampaignOverview. Status of the Whatsapp Campaign # noqa: E501 :param campaign_status: The campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ if campaign_status is None: raise ValueError("Invalid value for `campaign_status`, must not be `None`") # noqa: E501 allowed_values = ["draft", "scheduled", "pending", "approved", "running", "suspended", "rejected", "sent"] # noqa: E501 if campaign_status not in allowed_values: raise ValueError( "Invalid value for `campaign_status` ({0}), must be one of {1}" # noqa: E501 .format(campaign_status, allowed_values) ) self._campaign_status = campaign_status @property def scheduled_at(self): """Gets the scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 UTC date-time on which Whatsapp campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :return: The scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._scheduled_at @scheduled_at.setter def scheduled_at(self, scheduled_at): """Sets the scheduled_at of this GetWhatsappCampaignOverview. UTC date-time on which Whatsapp campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :param scheduled_at: The scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ self._scheduled_at = scheduled_at @property def sender_number(self): """Gets the sender_number of this GetWhatsappCampaignOverview. # noqa: E501 Sender of the Whatsapp Campaign # noqa: E501 :return: The sender_number of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._sender_number @sender_number.setter def sender_number(self, sender_number): """Sets the sender_number of this GetWhatsappCampaignOverview. Sender of the Whatsapp Campaign # noqa: E501 :param sender_number: The sender_number of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ if sender_number is None: raise ValueError("Invalid value for `sender_number`, must not be `None`") # noqa: E501 self._sender_number = sender_number @property def stats(self): """Gets the stats of this GetWhatsappCampaignOverview. # noqa: E501 :return: The stats of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: WhatsappCampStats """ return self._stats @stats.setter def stats(self, stats): """Sets the stats of this GetWhatsappCampaignOverview. :param stats: The stats of this GetWhatsappCampaignOverview. # noqa: E501 :type: WhatsappCampStats """ self._stats = stats @property def template(self): """Gets the template of this GetWhatsappCampaignOverview. # noqa: E501 :return: The template of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: WhatsappCampTemplate """ return self._template @template.setter def template(self, template): """Sets the template of this GetWhatsappCampaignOverview. :param template: The template of this GetWhatsappCampaignOverview. # noqa: E501 :type: WhatsappCampTemplate """ if template is None: raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @property def created_at(self): """Gets the created_at of this GetWhatsappCampaignOverview. # noqa: E501 Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this GetWhatsappCampaignOverview. Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_at @property def modified_at(self): """Gets the modified_at of this GetWhatsappCampaignOverview. # noqa: E501 UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetWhatsappCampaignOverview. # noqa: E501 :rtype: str """ return self._modified_at @modified_at.setter def modified_at(self, modified_at): """Sets the modified_at of this GetWhatsappCampaignOverview. UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetWhatsappCampaignOverview. # noqa: E501 :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 self._modified_at = modified_at def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWhatsappCampaignOverview, 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, GetWhatsappCampaignOverview): 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, campaign_name=None, campaign_status=None, scheduled_at=None, sender_number=None, stats=None, template=None, created_at=None, modified_at=None)
59,569
sib_api_v3_sdk.models.get_whatsapp_campaign_overview
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWhatsappCampaignOverview): return False return self.__dict__ == other.__dict__
(self, other)
59,570
sib_api_v3_sdk.models.get_whatsapp_campaign_overview
__init__
GetWhatsappCampaignOverview - a model defined in Swagger
def __init__(self, id=None, campaign_name=None, campaign_status=None, scheduled_at=None, sender_number=None, stats=None, template=None, created_at=None, modified_at=None): # noqa: E501 """GetWhatsappCampaignOverview - a model defined in Swagger""" # noqa: E501 self._id = None self._campaign_name = None self._campaign_status = None self._scheduled_at = None self._sender_number = None self._stats = None self._template = None self._created_at = None self._modified_at = None self.discriminator = None self.id = id self.campaign_name = campaign_name self.campaign_status = campaign_status if scheduled_at is not None: self.scheduled_at = scheduled_at self.sender_number = sender_number if stats is not None: self.stats = stats self.template = template self.created_at = created_at self.modified_at = modified_at
(self, id=None, campaign_name=None, campaign_status=None, scheduled_at=None, sender_number=None, stats=None, template=None, created_at=None, modified_at=None)
59,573
sib_api_v3_sdk.models.get_whatsapp_campaign_overview
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWhatsappCampaignOverview, dict): for key, value in self.items(): result[key] = value return result
(self)
59,575
sib_api_v3_sdk.models.get_whatsapp_event_report
GetWhatsappEventReport
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWhatsappEventReport(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'events': 'list[GetWhatsappEventReportEvents]' } attribute_map = { 'events': 'events' } def __init__(self, events=None): # noqa: E501 """GetWhatsappEventReport - a model defined in Swagger""" # noqa: E501 self._events = None self.discriminator = None if events is not None: self.events = events @property def events(self): """Gets the events of this GetWhatsappEventReport. # noqa: E501 :return: The events of this GetWhatsappEventReport. # noqa: E501 :rtype: list[GetWhatsappEventReportEvents] """ return self._events @events.setter def events(self, events): """Sets the events of this GetWhatsappEventReport. :param events: The events of this GetWhatsappEventReport. # noqa: E501 :type: list[GetWhatsappEventReportEvents] """ self._events = events def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWhatsappEventReport, 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, GetWhatsappEventReport): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(events=None)
59,576
sib_api_v3_sdk.models.get_whatsapp_event_report
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWhatsappEventReport): return False return self.__dict__ == other.__dict__
(self, other)
59,577
sib_api_v3_sdk.models.get_whatsapp_event_report
__init__
GetWhatsappEventReport - a model defined in Swagger
def __init__(self, events=None): # noqa: E501 """GetWhatsappEventReport - a model defined in Swagger""" # noqa: E501 self._events = None self.discriminator = None if events is not None: self.events = events
(self, events=None)
59,580
sib_api_v3_sdk.models.get_whatsapp_event_report
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWhatsappEventReport, dict): for key, value in self.items(): result[key] = value return result
(self)
59,582
sib_api_v3_sdk.models.get_whatsapp_event_report_events
GetWhatsappEventReportEvents
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class GetWhatsappEventReportEvents(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 = { 'contact_number': 'str', '_date': 'str', 'message_id': 'str', 'event': 'str', 'reason': 'str', 'body': 'str', 'media_url': 'str', 'sender_number': 'str' } attribute_map = { 'contact_number': 'contactNumber', '_date': 'date', 'message_id': 'messageId', 'event': 'event', 'reason': 'reason', 'body': 'body', 'media_url': 'mediaUrl', 'sender_number': 'senderNumber' } def __init__(self, contact_number=None, _date=None, message_id=None, event=None, reason=None, body=None, media_url=None, sender_number=None): # noqa: E501 """GetWhatsappEventReportEvents - a model defined in Swagger""" # noqa: E501 self._contact_number = None self.__date = None self._message_id = None self._event = None self._reason = None self._body = None self._media_url = None self._sender_number = None self.discriminator = None self.contact_number = contact_number self._date = _date self.message_id = message_id self.event = event if reason is not None: self.reason = reason if body is not None: self.body = body if media_url is not None: self.media_url = media_url self.sender_number = sender_number @property def contact_number(self): """Gets the contact_number of this GetWhatsappEventReportEvents. # noqa: E501 WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :return: The contact_number of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._contact_number @contact_number.setter def contact_number(self, contact_number): """Sets the contact_number of this GetWhatsappEventReportEvents. WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :param contact_number: The contact_number of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ if contact_number is None: raise ValueError("Invalid value for `contact_number`, must not be `None`") # noqa: E501 self._contact_number = contact_number @property def _date(self): """Gets the _date of this GetWhatsappEventReportEvents. # noqa: E501 UTC date-time on which the event has been generated # noqa: E501 :return: The _date of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self.__date @_date.setter def _date(self, _date): """Sets the _date of this GetWhatsappEventReportEvents. UTC date-time on which the event has been generated # noqa: E501 :param _date: The _date of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 self.__date = _date @property def message_id(self): """Gets the message_id of this GetWhatsappEventReportEvents. # noqa: E501 Message ID which generated the event # noqa: E501 :return: The message_id of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._message_id @message_id.setter def message_id(self, message_id): """Sets the message_id of this GetWhatsappEventReportEvents. Message ID which generated the event # noqa: E501 :param message_id: The message_id of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ if message_id is None: raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 self._message_id = message_id @property def event(self): """Gets the event of this GetWhatsappEventReportEvents. # noqa: E501 Event which occurred # noqa: E501 :return: The event of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._event @event.setter def event(self, event): """Sets the event of this GetWhatsappEventReportEvents. Event which occurred # noqa: E501 :param event: The event of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ if event is None: raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 allowed_values = ["sent", "delivered", "read", "error", "unsubscribe", "reply", "soft-bounce"] # noqa: E501 if event not in allowed_values: raise ValueError( "Invalid value for `event` ({0}), must be one of {1}" # noqa: E501 .format(event, allowed_values) ) self._event = event @property def reason(self): """Gets the reason of this GetWhatsappEventReportEvents. # noqa: E501 Reason for the event (will be there in case of `error` and `soft-bounce` events) # noqa: E501 :return: The reason of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._reason @reason.setter def reason(self, reason): """Sets the reason of this GetWhatsappEventReportEvents. Reason for the event (will be there in case of `error` and `soft-bounce` events) # noqa: E501 :param reason: The reason of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ self._reason = reason @property def body(self): """Gets the body of this GetWhatsappEventReportEvents. # noqa: E501 Text of the reply (will be there only in case of `reply` event with text) # noqa: E501 :return: The body of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._body @body.setter def body(self, body): """Sets the body of this GetWhatsappEventReportEvents. Text of the reply (will be there only in case of `reply` event with text) # noqa: E501 :param body: The body of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ self._body = body @property def media_url(self): """Gets the media_url of this GetWhatsappEventReportEvents. # noqa: E501 Url of the media reply (will be there only in case of `reply` event with media) # noqa: E501 :return: The media_url of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._media_url @media_url.setter def media_url(self, media_url): """Sets the media_url of this GetWhatsappEventReportEvents. Url of the media reply (will be there only in case of `reply` event with media) # noqa: E501 :param media_url: The media_url of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ self._media_url = media_url @property def sender_number(self): """Gets the sender_number of this GetWhatsappEventReportEvents. # noqa: E501 WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :return: The sender_number of this GetWhatsappEventReportEvents. # noqa: E501 :rtype: str """ return self._sender_number @sender_number.setter def sender_number(self, sender_number): """Sets the sender_number of this GetWhatsappEventReportEvents. WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :param sender_number: The sender_number of this GetWhatsappEventReportEvents. # noqa: E501 :type: str """ if sender_number is None: raise ValueError("Invalid value for `sender_number`, must not be `None`") # noqa: E501 self._sender_number = sender_number 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(GetWhatsappEventReportEvents, 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, GetWhatsappEventReportEvents): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(contact_number=None, _date=None, message_id=None, event=None, reason=None, body=None, media_url=None, sender_number=None)
59,583
sib_api_v3_sdk.models.get_whatsapp_event_report_events
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, GetWhatsappEventReportEvents): return False return self.__dict__ == other.__dict__
(self, other)
59,584
sib_api_v3_sdk.models.get_whatsapp_event_report_events
__init__
GetWhatsappEventReportEvents - a model defined in Swagger
def __init__(self, contact_number=None, _date=None, message_id=None, event=None, reason=None, body=None, media_url=None, sender_number=None): # noqa: E501 """GetWhatsappEventReportEvents - a model defined in Swagger""" # noqa: E501 self._contact_number = None self.__date = None self._message_id = None self._event = None self._reason = None self._body = None self._media_url = None self._sender_number = None self.discriminator = None self.contact_number = contact_number self._date = _date self.message_id = message_id self.event = event if reason is not None: self.reason = reason if body is not None: self.body = body if media_url is not None: self.media_url = media_url self.sender_number = sender_number
(self, contact_number=None, _date=None, message_id=None, event=None, reason=None, body=None, media_url=None, sender_number=None)
59,587
sib_api_v3_sdk.models.get_whatsapp_event_report_events
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(GetWhatsappEventReportEvents, dict): for key, value in self.items(): result[key] = value return result
(self)
59,589
sib_api_v3_sdk.api.inbound_parsing_api
InboundParsingApi
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen
class InboundParsingApi(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def get_inbound_email_attachment(self, download_token, **kwargs): # noqa: E501 """Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 else: (data) = self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 return data def get_inbound_email_attachment_with_http_info(self, download_token, **kwargs): # noqa: E501 """Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment_with_http_info(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread. """ all_params = ['download_token'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_inbound_email_attachment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'download_token' is set if ('download_token' not in params or params['download_token'] is None): raise ValueError("Missing the required parameter `download_token` when calling `get_inbound_email_attachment`") # noqa: E501 collection_formats = {} path_params = {} if 'download_token' in params: path_params['downloadToken'] = params['download_token'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 return self.api_client.call_api( '/inbound/attachments/{downloadToken}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='file', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_inbound_email_events(self, **kwargs): # noqa: E501 """Get the list of all the events for the received emails. # noqa: E501 This endpoint will show the list of all the events for the received emails. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_events(async_req=True) >>> result = thread.get() :param async_req bool :param str sender: Email address of the sender. :param date start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. :param date end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str sort: Sort the results in the ascending/descending order of record creation :return: GetInboundEmailEvents If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_inbound_email_events_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_inbound_email_events_with_http_info(**kwargs) # noqa: E501 return data def get_inbound_email_events_with_http_info(self, **kwargs): # noqa: E501 """Get the list of all the events for the received emails. # noqa: E501 This endpoint will show the list of all the events for the received emails. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_events_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str sender: Email address of the sender. :param date start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. :param date end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str sort: Sort the results in the ascending/descending order of record creation :return: GetInboundEmailEvents If the method is called asynchronously, returns the request thread. """ all_params = ['sender', 'start_date', 'end_date', 'limit', 'offset', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_inbound_email_events" % key ) params[key] = val del params['kwargs'] if 'limit' in params and params['limit'] > 500: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_inbound_email_events`, must be a value less than or equal to `500`") # noqa: E501 if 'limit' in params and params['limit'] < 0: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_inbound_email_events`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'sender' in params: query_params.append(('sender', params['sender'])) # noqa: E501 if 'start_date' in params: query_params.append(('startDate', params['start_date'])) # noqa: E501 if 'end_date' in params: query_params.append(('endDate', params['end_date'])) # noqa: E501 if 'limit' in params: query_params.append(('limit', params['limit'])) # noqa: E501 if 'offset' in params: query_params.append(('offset', params['offset'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 return self.api_client.call_api( '/inbound/events', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetInboundEmailEvents', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_inbound_email_events_by_uuid(self, uuid, **kwargs): # noqa: E501 """Fetch all events history for one particular received email. # noqa: E501 This endpoint will show the list of all events history for one particular received email. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_events_by_uuid(uuid, async_req=True) >>> result = thread.get() :param async_req bool :param str uuid: UUID to fetch events specific to recieved email (required) :return: GetInboundEmailEventsByUuid If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_inbound_email_events_by_uuid_with_http_info(uuid, **kwargs) # noqa: E501 else: (data) = self.get_inbound_email_events_by_uuid_with_http_info(uuid, **kwargs) # noqa: E501 return data def get_inbound_email_events_by_uuid_with_http_info(self, uuid, **kwargs): # noqa: E501 """Fetch all events history for one particular received email. # noqa: E501 This endpoint will show the list of all events history for one particular received email. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_events_by_uuid_with_http_info(uuid, async_req=True) >>> result = thread.get() :param async_req bool :param str uuid: UUID to fetch events specific to recieved email (required) :return: GetInboundEmailEventsByUuid If the method is called asynchronously, returns the request thread. """ all_params = ['uuid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_inbound_email_events_by_uuid" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'uuid' is set if ('uuid' not in params or params['uuid'] is None): raise ValueError("Missing the required parameter `uuid` when calling `get_inbound_email_events_by_uuid`") # noqa: E501 collection_formats = {} path_params = {} if 'uuid' in params: path_params['uuid'] = params['uuid'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 return self.api_client.call_api( '/inbound/events/{uuid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetInboundEmailEventsByUuid', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
(api_client=None)
59,591
sib_api_v3_sdk.api.inbound_parsing_api
get_inbound_email_attachment
Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread.
def get_inbound_email_attachment(self, download_token, **kwargs): # noqa: E501 """Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 else: (data) = self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 return data
(self, download_token, **kwargs)
59,592
sib_api_v3_sdk.api.inbound_parsing_api
get_inbound_email_attachment_with_http_info
Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment_with_http_info(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread.
def get_inbound_email_attachment_with_http_info(self, download_token, **kwargs): # noqa: E501 """Retrieve inbound attachment with download token. # noqa: E501 This endpoint will retrieve inbound attachment with download token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_inbound_email_attachment_with_http_info(download_token, async_req=True) >>> result = thread.get() :param async_req bool :param str download_token: Token to fetch a particular attachment (required) :return: file If the method is called asynchronously, returns the request thread. """ all_params = ['download_token'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_inbound_email_attachment" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'download_token' is set if ('download_token' not in params or params['download_token'] is None): raise ValueError("Missing the required parameter `download_token` when calling `get_inbound_email_attachment`") # noqa: E501 collection_formats = {} path_params = {} if 'download_token' in params: path_params['downloadToken'] = params['download_token'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['api-key', 'partner-key'] # noqa: E501 return self.api_client.call_api( '/inbound/attachments/{downloadToken}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='file', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
(self, download_token, **kwargs)