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
60,054
sib_api_v3_sdk.models.send_transac_sms
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SendTransacSms): return False return self.__dict__ == other.__dict__
(self, other)
60,055
sib_api_v3_sdk.models.send_transac_sms
__init__
SendTransacSms - a model defined in Swagger
def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=False, organisation_prefix=None): # noqa: E501 """SendTransacSms - a model defined in Swagger""" # noqa: E501 self._sender = None self._recipient = None self._content = None self._type = None self._tag = None self._web_url = None self._unicode_enabled = None self._organisation_prefix = None self.discriminator = None self.sender = sender self.recipient = recipient self.content = content if type is not None: self.type = type if tag is not None: self.tag = tag if web_url is not None: self.web_url = web_url if unicode_enabled is not None: self.unicode_enabled = unicode_enabled if organisation_prefix is not None: self.organisation_prefix = organisation_prefix
(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=False, organisation_prefix=None)
60,058
sib_api_v3_sdk.models.send_transac_sms
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(SendTransacSms, dict): for key, value in self.items(): result[key] = value return result
(self)
60,060
sib_api_v3_sdk.models.send_whatsapp_message
SendWhatsappMessage
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SendWhatsappMessage(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 = { 'template_id': 'int', 'text': 'str', 'sender_number': 'str', 'contact_numbers': 'list[str]' } attribute_map = { 'template_id': 'templateId', 'text': 'text', 'sender_number': 'senderNumber', 'contact_numbers': 'contactNumbers' } def __init__(self, template_id=None, text=None, sender_number=None, contact_numbers=None): # noqa: E501 """SendWhatsappMessage - a model defined in Swagger""" # noqa: E501 self._template_id = None self._text = None self._sender_number = None self._contact_numbers = None self.discriminator = None if template_id is not None: self.template_id = template_id if text is not None: self.text = text self.sender_number = sender_number self.contact_numbers = contact_numbers @property def template_id(self): """Gets the template_id of this SendWhatsappMessage. # noqa: E501 ID of the template to send # noqa: E501 :return: The template_id of this SendWhatsappMessage. # noqa: E501 :rtype: int """ return self._template_id @template_id.setter def template_id(self, template_id): """Sets the template_id of this SendWhatsappMessage. ID of the template to send # noqa: E501 :param template_id: The template_id of this SendWhatsappMessage. # noqa: E501 :type: int """ self._template_id = template_id @property def text(self): """Gets the text of this SendWhatsappMessage. # noqa: E501 Text to be sent as message body (will be overridden if templateId is passed in the same request) # noqa: E501 :return: The text of this SendWhatsappMessage. # noqa: E501 :rtype: str """ return self._text @text.setter def text(self, text): """Sets the text of this SendWhatsappMessage. Text to be sent as message body (will be overridden if templateId is passed in the same request) # noqa: E501 :param text: The text of this SendWhatsappMessage. # noqa: E501 :type: str """ self._text = text @property def sender_number(self): """Gets the sender_number of this SendWhatsappMessage. # noqa: E501 WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :return: The sender_number of this SendWhatsappMessage. # noqa: E501 :rtype: str """ return self._sender_number @sender_number.setter def sender_number(self, sender_number): """Sets the sender_number of this SendWhatsappMessage. WhatsApp Number with country code. Example, 85264318721 # noqa: E501 :param sender_number: The sender_number of this SendWhatsappMessage. # 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 contact_numbers(self): """Gets the contact_numbers of this SendWhatsappMessage. # noqa: E501 List of phone numbers of the contacts # noqa: E501 :return: The contact_numbers of this SendWhatsappMessage. # noqa: E501 :rtype: list[str] """ return self._contact_numbers @contact_numbers.setter def contact_numbers(self, contact_numbers): """Sets the contact_numbers of this SendWhatsappMessage. List of phone numbers of the contacts # noqa: E501 :param contact_numbers: The contact_numbers of this SendWhatsappMessage. # noqa: E501 :type: list[str] """ if contact_numbers is None: raise ValueError("Invalid value for `contact_numbers`, must not be `None`") # noqa: E501 self._contact_numbers = contact_numbers 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(SendWhatsappMessage, 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, SendWhatsappMessage): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(template_id=None, text=None, sender_number=None, contact_numbers=None)
60,061
sib_api_v3_sdk.models.send_whatsapp_message
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SendWhatsappMessage): return False return self.__dict__ == other.__dict__
(self, other)
60,062
sib_api_v3_sdk.models.send_whatsapp_message
__init__
SendWhatsappMessage - a model defined in Swagger
def __init__(self, template_id=None, text=None, sender_number=None, contact_numbers=None): # noqa: E501 """SendWhatsappMessage - a model defined in Swagger""" # noqa: E501 self._template_id = None self._text = None self._sender_number = None self._contact_numbers = None self.discriminator = None if template_id is not None: self.template_id = template_id if text is not None: self.text = text self.sender_number = sender_number self.contact_numbers = contact_numbers
(self, template_id=None, text=None, sender_number=None, contact_numbers=None)
60,065
sib_api_v3_sdk.models.send_whatsapp_message
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(SendWhatsappMessage, dict): for key, value in self.items(): result[key] = value return result
(self)
60,067
sib_api_v3_sdk.api.senders_api
SendersApi
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 SendersApi(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 create_sender(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_sender_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_sender_with_http_info(**kwargs) # noqa: E501 return data def create_sender_with_http_info(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ all_params = ['sender'] # 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 create_sender" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'sender' in params: body_params = params['sender'] # 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( '/senders', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='CreateSenderModel', # 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 delete_sender(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id'] # 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 delete_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `delete_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # 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( '/senders/{senderId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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_ips(self, **kwargs): # noqa: E501 """Get all the dedicated IPs for your account # 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_ips(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_ips_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_ips_with_http_info(**kwargs) # noqa: E501 return data def get_ips_with_http_info(self, **kwargs): # noqa: E501 """Get all the dedicated IPs for your account # 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_ips_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ all_params = [] # 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_ips" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} 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( '/senders/ips', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetIps', # 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_ips_from_sender(self, sender_id, **kwargs): # noqa: E501 """Get all the dedicated IPs for a sender # 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_ips_from_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Get all the dedicated IPs for a sender # 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_ips_from_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id'] # 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_ips_from_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `get_ips_from_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # 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( '/senders/{senderId}/ips', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetIpsFromSender', # 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_senders(self, **kwargs): # noqa: E501 """Get the list of all your senders # 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_senders(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_senders_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_senders_with_http_info(**kwargs) # noqa: E501 return data def get_senders_with_http_info(self, **kwargs): # noqa: E501 """Get the list of all your senders # 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_senders_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread. """ all_params = ['ip', 'domain'] # 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_senders" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'ip' in params: query_params.append(('ip', params['ip'])) # noqa: E501 if 'domain' in params: query_params.append(('domain', params['domain'])) # 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( '/senders', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSendersList', # 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 update_sender(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id', 'sender'] # 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 update_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `update_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'sender' in params: body_params = params['sender'] # 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( '/senders/{senderId}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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)
60,069
sib_api_v3_sdk.api.senders_api
create_sender
Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread.
def create_sender(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.create_sender_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_sender_with_http_info(**kwargs) # noqa: E501 return data
(self, **kwargs)
60,070
sib_api_v3_sdk.api.senders_api
create_sender_with_http_info
Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread.
def create_sender_with_http_info(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_sender_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ all_params = ['sender'] # 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 create_sender" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'sender' in params: body_params = params['sender'] # 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( '/senders', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='CreateSenderModel', # 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, **kwargs)
60,071
sib_api_v3_sdk.api.senders_api
delete_sender
Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread.
def delete_sender(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data
(self, sender_id, **kwargs)
60,072
sib_api_v3_sdk.api.senders_api
delete_sender_with_http_info
Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread.
def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id'] # 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 delete_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `delete_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # 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( '/senders/{senderId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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, sender_id, **kwargs)
60,073
sib_api_v3_sdk.api.senders_api
get_ips
Get all the dedicated IPs for your account # 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_ips(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread.
def get_ips(self, **kwargs): # noqa: E501 """Get all the dedicated IPs for your account # 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_ips(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_ips_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_ips_with_http_info(**kwargs) # noqa: E501 return data
(self, **kwargs)
60,074
sib_api_v3_sdk.api.senders_api
get_ips_from_sender
Get all the dedicated IPs for a sender # 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_ips_from_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread.
def get_ips_from_sender(self, sender_id, **kwargs): # noqa: E501 """Get all the dedicated IPs for a sender # 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_ips_from_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data
(self, sender_id, **kwargs)
60,075
sib_api_v3_sdk.api.senders_api
get_ips_from_sender_with_http_info
Get all the dedicated IPs for a sender # 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_ips_from_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread.
def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Get all the dedicated IPs for a sender # 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_ips_from_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id'] # 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_ips_from_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `get_ips_from_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # 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( '/senders/{senderId}/ips', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetIpsFromSender', # 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, sender_id, **kwargs)
60,076
sib_api_v3_sdk.api.senders_api
get_ips_with_http_info
Get all the dedicated IPs for your account # 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_ips_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread.
def get_ips_with_http_info(self, **kwargs): # noqa: E501 """Get all the dedicated IPs for your account # 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_ips_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ all_params = [] # 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_ips" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} 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( '/senders/ips', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetIps', # 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, **kwargs)
60,077
sib_api_v3_sdk.api.senders_api
get_senders
Get the list of all your senders # 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_senders(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread.
def get_senders(self, **kwargs): # noqa: E501 """Get the list of all your senders # 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_senders(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_senders_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_senders_with_http_info(**kwargs) # noqa: E501 return data
(self, **kwargs)
60,078
sib_api_v3_sdk.api.senders_api
get_senders_with_http_info
Get the list of all your senders # 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_senders_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread.
def get_senders_with_http_info(self, **kwargs): # noqa: E501 """Get the list of all your senders # 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_senders_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList If the method is called asynchronously, returns the request thread. """ all_params = ['ip', 'domain'] # 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_senders" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'ip' in params: query_params.append(('ip', params['ip'])) # noqa: E501 if 'domain' in params: query_params.append(('domain', params['domain'])) # 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( '/senders', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GetSendersList', # 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, **kwargs)
60,079
sib_api_v3_sdk.api.senders_api
update_sender
Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread.
def update_sender(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 return data
(self, sender_id, **kwargs)
60,080
sib_api_v3_sdk.api.senders_api
update_sender_with_http_info
Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread.
def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['sender_id', 'sender'] # 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 update_sender" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'sender_id' is set if ('sender_id' not in params or params['sender_id'] is None): raise ValueError("Missing the required parameter `sender_id` when calling `update_sender`") # noqa: E501 collection_formats = {} path_params = {} if 'sender_id' in params: path_params['senderId'] = params['sender_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'sender' in params: body_params = params['sender'] # 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( '/senders/{senderId}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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, sender_id, **kwargs)
60,081
sib_api_v3_sdk.models.sso_token_request
SsoTokenRequest
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SsoTokenRequest(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', 'email': 'str', 'target': 'str' } attribute_map = { 'id': 'id', 'email': 'email', 'target': 'target' } def __init__(self, id=None, email=None, target=None): # noqa: E501 """SsoTokenRequest - a model defined in Swagger""" # noqa: E501 self._id = None self._email = None self._target = None self.discriminator = None self.id = id if email is not None: self.email = email if target is not None: self.target = target @property def id(self): """Gets the id of this SsoTokenRequest. # noqa: E501 Id of the sub-account organization # noqa: E501 :return: The id of this SsoTokenRequest. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): """Sets the id of this SsoTokenRequest. Id of the sub-account organization # noqa: E501 :param id: The id of this SsoTokenRequest. # noqa: E501 :type: int """ if id is None: raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 self._id = id @property def email(self): """Gets the email of this SsoTokenRequest. # noqa: E501 User email of sub-account organization # noqa: E501 :return: The email of this SsoTokenRequest. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this SsoTokenRequest. User email of sub-account organization # noqa: E501 :param email: The email of this SsoTokenRequest. # noqa: E501 :type: str """ self._email = email @property def target(self): """Gets the target of this SsoTokenRequest. # noqa: E501 Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login # noqa: E501 :return: The target of this SsoTokenRequest. # noqa: E501 :rtype: str """ return self._target @target.setter def target(self, target): """Sets the target of this SsoTokenRequest. Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login # noqa: E501 :param target: The target of this SsoTokenRequest. # noqa: E501 :type: str """ allowed_values = ["automation", "email_campaign", "contacts", "landing_pages", "email_transactional", "senders", "sms_campaign", "sms_transactional"] # noqa: E501 if target not in allowed_values: raise ValueError( "Invalid value for `target` ({0}), must be one of {1}" # noqa: E501 .format(target, allowed_values) ) self._target = target 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(SsoTokenRequest, 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, SsoTokenRequest): 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, email=None, target=None)
60,082
sib_api_v3_sdk.models.sso_token_request
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SsoTokenRequest): return False return self.__dict__ == other.__dict__
(self, other)
60,083
sib_api_v3_sdk.models.sso_token_request
__init__
SsoTokenRequest - a model defined in Swagger
def __init__(self, id=None, email=None, target=None): # noqa: E501 """SsoTokenRequest - a model defined in Swagger""" # noqa: E501 self._id = None self._email = None self._target = None self.discriminator = None self.id = id if email is not None: self.email = email if target is not None: self.target = target
(self, id=None, email=None, target=None)
60,086
sib_api_v3_sdk.models.sso_token_request
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(SsoTokenRequest, dict): for key, value in self.items(): result[key] = value return result
(self)
60,088
sib_api_v3_sdk.models.sub_account_details_response
SubAccountDetailsResponse
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponse(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', 'company_name': 'str', 'plan_info': 'SubAccountDetailsResponsePlanInfo' } attribute_map = { 'name': 'name', 'email': 'email', 'company_name': 'companyName', 'plan_info': 'planInfo' } def __init__(self, name=None, email=None, company_name=None, plan_info=None): # noqa: E501 """SubAccountDetailsResponse - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None self._company_name = None self._plan_info = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email if company_name is not None: self.company_name = company_name if plan_info is not None: self.plan_info = plan_info @property def name(self): """Gets the name of this SubAccountDetailsResponse. # noqa: E501 Name of the sub-account user # noqa: E501 :return: The name of this SubAccountDetailsResponse. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this SubAccountDetailsResponse. Name of the sub-account user # noqa: E501 :param name: The name of this SubAccountDetailsResponse. # noqa: E501 :type: str """ self._name = name @property def email(self): """Gets the email of this SubAccountDetailsResponse. # noqa: E501 Email id of the sub-account organization # noqa: E501 :return: The email of this SubAccountDetailsResponse. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this SubAccountDetailsResponse. Email id of the sub-account organization # noqa: E501 :param email: The email of this SubAccountDetailsResponse. # noqa: E501 :type: str """ self._email = email @property def company_name(self): """Gets the company_name of this SubAccountDetailsResponse. # noqa: E501 Sub-account company name # noqa: E501 :return: The company_name of this SubAccountDetailsResponse. # noqa: E501 :rtype: str """ return self._company_name @company_name.setter def company_name(self, company_name): """Sets the company_name of this SubAccountDetailsResponse. Sub-account company name # noqa: E501 :param company_name: The company_name of this SubAccountDetailsResponse. # noqa: E501 :type: str """ self._company_name = company_name @property def plan_info(self): """Gets the plan_info of this SubAccountDetailsResponse. # noqa: E501 :return: The plan_info of this SubAccountDetailsResponse. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfo """ return self._plan_info @plan_info.setter def plan_info(self, plan_info): """Sets the plan_info of this SubAccountDetailsResponse. :param plan_info: The plan_info of this SubAccountDetailsResponse. # noqa: E501 :type: SubAccountDetailsResponsePlanInfo """ self._plan_info = plan_info 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(SubAccountDetailsResponse, 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, SubAccountDetailsResponse): 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, company_name=None, plan_info=None)
60,089
sib_api_v3_sdk.models.sub_account_details_response
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponse): return False return self.__dict__ == other.__dict__
(self, other)
60,090
sib_api_v3_sdk.models.sub_account_details_response
__init__
SubAccountDetailsResponse - a model defined in Swagger
def __init__(self, name=None, email=None, company_name=None, plan_info=None): # noqa: E501 """SubAccountDetailsResponse - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None self._company_name = None self._plan_info = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email if company_name is not None: self.company_name = company_name if plan_info is not None: self.plan_info = plan_info
(self, name=None, email=None, company_name=None, plan_info=None)
60,093
sib_api_v3_sdk.models.sub_account_details_response
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(SubAccountDetailsResponse, dict): for key, value in self.items(): result[key] = value return result
(self)
60,095
sib_api_v3_sdk.models.sub_account_details_response_plan_info
SubAccountDetailsResponsePlanInfo
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfo(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 = { 'credits': 'SubAccountDetailsResponsePlanInfoCredits', 'features': 'SubAccountDetailsResponsePlanInfoFeatures', 'plan_type': 'str' } attribute_map = { 'credits': 'credits', 'features': 'features', 'plan_type': 'planType' } def __init__(self, credits=None, features=None, plan_type=None): # noqa: E501 """SubAccountDetailsResponsePlanInfo - a model defined in Swagger""" # noqa: E501 self._credits = None self._features = None self._plan_type = None self.discriminator = None if credits is not None: self.credits = credits if features is not None: self.features = features if plan_type is not None: self.plan_type = plan_type @property def credits(self): """Gets the credits of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :return: The credits of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoCredits """ return self._credits @credits.setter def credits(self, credits): """Sets the credits of this SubAccountDetailsResponsePlanInfo. :param credits: The credits of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoCredits """ self._credits = credits @property def features(self): """Gets the features of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :return: The features of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoFeatures """ return self._features @features.setter def features(self, features): """Sets the features of this SubAccountDetailsResponsePlanInfo. :param features: The features of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoFeatures """ self._features = features @property def plan_type(self): """Gets the plan_type of this SubAccountDetailsResponsePlanInfo. # noqa: E501 type of the plan # noqa: E501 :return: The plan_type of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :rtype: str """ return self._plan_type @plan_type.setter def plan_type(self, plan_type): """Sets the plan_type of this SubAccountDetailsResponsePlanInfo. type of the plan # noqa: E501 :param plan_type: The plan_type of this SubAccountDetailsResponsePlanInfo. # noqa: E501 :type: str """ self._plan_type = plan_type 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(SubAccountDetailsResponsePlanInfo, 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, SubAccountDetailsResponsePlanInfo): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(credits=None, features=None, plan_type=None)
60,096
sib_api_v3_sdk.models.sub_account_details_response_plan_info
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfo): return False return self.__dict__ == other.__dict__
(self, other)
60,097
sib_api_v3_sdk.models.sub_account_details_response_plan_info
__init__
SubAccountDetailsResponsePlanInfo - a model defined in Swagger
def __init__(self, credits=None, features=None, plan_type=None): # noqa: E501 """SubAccountDetailsResponsePlanInfo - a model defined in Swagger""" # noqa: E501 self._credits = None self._features = None self._plan_type = None self.discriminator = None if credits is not None: self.credits = credits if features is not None: self.features = features if plan_type is not None: self.plan_type = plan_type
(self, credits=None, features=None, plan_type=None)
60,100
sib_api_v3_sdk.models.sub_account_details_response_plan_info
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(SubAccountDetailsResponsePlanInfo, dict): for key, value in self.items(): result[key] = value return result
(self)
60,102
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits
SubAccountDetailsResponsePlanInfoCredits
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoCredits(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 = { 'sms': 'int', 'emails': 'SubAccountDetailsResponsePlanInfoCreditsEmails' } attribute_map = { 'sms': 'sms', 'emails': 'emails' } def __init__(self, sms=None, emails=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoCredits - a model defined in Swagger""" # noqa: E501 self._sms = None self._emails = None self.discriminator = None if sms is not None: self.sms = sms if emails is not None: self.emails = emails @property def sms(self): """Gets the sms of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 SMS credits remaining on the sub-account # noqa: E501 :return: The sms of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 :rtype: int """ return self._sms @sms.setter def sms(self, sms): """Sets the sms of this SubAccountDetailsResponsePlanInfoCredits. SMS credits remaining on the sub-account # noqa: E501 :param sms: The sms of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 :type: int """ self._sms = sms @property def emails(self): """Gets the emails of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 :return: The emails of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoCreditsEmails """ return self._emails @emails.setter def emails(self, emails): """Sets the emails of this SubAccountDetailsResponsePlanInfoCredits. :param emails: The emails of this SubAccountDetailsResponsePlanInfoCredits. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoCreditsEmails """ self._emails = 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(SubAccountDetailsResponsePlanInfoCredits, 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, SubAccountDetailsResponsePlanInfoCredits): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(sms=None, emails=None)
60,103
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoCredits): return False return self.__dict__ == other.__dict__
(self, other)
60,104
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits
__init__
SubAccountDetailsResponsePlanInfoCredits - a model defined in Swagger
def __init__(self, sms=None, emails=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoCredits - a model defined in Swagger""" # noqa: E501 self._sms = None self._emails = None self.discriminator = None if sms is not None: self.sms = sms if emails is not None: self.emails = emails
(self, sms=None, emails=None)
60,107
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(SubAccountDetailsResponsePlanInfoCredits, dict): for key, value in self.items(): result[key] = value return result
(self)
60,109
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits_emails
SubAccountDetailsResponsePlanInfoCreditsEmails
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoCreditsEmails(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 = { 'quantity': 'int', 'remaining': 'int' } attribute_map = { 'quantity': 'quantity', 'remaining': 'remaining' } def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoCreditsEmails - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining @property def quantity(self): """Gets the quantity of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 Quantity of email messaging limits provided # noqa: E501 :return: The quantity of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 :rtype: int """ return self._quantity @quantity.setter def quantity(self, quantity): """Sets the quantity of this SubAccountDetailsResponsePlanInfoCreditsEmails. Quantity of email messaging limits provided # noqa: E501 :param quantity: The quantity of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 :type: int """ self._quantity = quantity @property def remaining(self): """Gets the remaining of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 Available email messaging limits for use # noqa: E501 :return: The remaining of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 :rtype: int """ return self._remaining @remaining.setter def remaining(self, remaining): """Sets the remaining of this SubAccountDetailsResponsePlanInfoCreditsEmails. Available email messaging limits for use # noqa: E501 :param remaining: The remaining of this SubAccountDetailsResponsePlanInfoCreditsEmails. # noqa: E501 :type: int """ self._remaining = remaining 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(SubAccountDetailsResponsePlanInfoCreditsEmails, 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, SubAccountDetailsResponsePlanInfoCreditsEmails): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(quantity=None, remaining=None)
60,110
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits_emails
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoCreditsEmails): return False return self.__dict__ == other.__dict__
(self, other)
60,111
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits_emails
__init__
SubAccountDetailsResponsePlanInfoCreditsEmails - a model defined in Swagger
def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoCreditsEmails - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining
(self, quantity=None, remaining=None)
60,114
sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits_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(SubAccountDetailsResponsePlanInfoCreditsEmails, dict): for key, value in self.items(): result[key] = value return result
(self)
60,116
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features
SubAccountDetailsResponsePlanInfoFeatures
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoFeatures(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 = { 'inbox': 'SubAccountDetailsResponsePlanInfoFeaturesInbox', 'landing_page': 'SubAccountDetailsResponsePlanInfoFeaturesLandingPage', 'users': 'SubAccountDetailsResponsePlanInfoFeaturesUsers' } attribute_map = { 'inbox': 'inbox', 'landing_page': 'landingPage', 'users': 'users' } def __init__(self, inbox=None, landing_page=None, users=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeatures - a model defined in Swagger""" # noqa: E501 self._inbox = None self._landing_page = None self._users = None self.discriminator = None if inbox is not None: self.inbox = inbox if landing_page is not None: self.landing_page = landing_page if users is not None: self.users = users @property def inbox(self): """Gets the inbox of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :return: The inbox of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoFeaturesInbox """ return self._inbox @inbox.setter def inbox(self, inbox): """Sets the inbox of this SubAccountDetailsResponsePlanInfoFeatures. :param inbox: The inbox of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoFeaturesInbox """ self._inbox = inbox @property def landing_page(self): """Gets the landing_page of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :return: The landing_page of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoFeaturesLandingPage """ return self._landing_page @landing_page.setter def landing_page(self, landing_page): """Sets the landing_page of this SubAccountDetailsResponsePlanInfoFeatures. :param landing_page: The landing_page of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoFeaturesLandingPage """ self._landing_page = landing_page @property def users(self): """Gets the users of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :return: The users of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :rtype: SubAccountDetailsResponsePlanInfoFeaturesUsers """ return self._users @users.setter def users(self, users): """Sets the users of this SubAccountDetailsResponsePlanInfoFeatures. :param users: The users of this SubAccountDetailsResponsePlanInfoFeatures. # noqa: E501 :type: SubAccountDetailsResponsePlanInfoFeaturesUsers """ self._users = users 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(SubAccountDetailsResponsePlanInfoFeatures, 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, SubAccountDetailsResponsePlanInfoFeatures): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(inbox=None, landing_page=None, users=None)
60,117
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoFeatures): return False return self.__dict__ == other.__dict__
(self, other)
60,118
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features
__init__
SubAccountDetailsResponsePlanInfoFeatures - a model defined in Swagger
def __init__(self, inbox=None, landing_page=None, users=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeatures - a model defined in Swagger""" # noqa: E501 self._inbox = None self._landing_page = None self._users = None self.discriminator = None if inbox is not None: self.inbox = inbox if landing_page is not None: self.landing_page = landing_page if users is not None: self.users = users
(self, inbox=None, landing_page=None, users=None)
60,121
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features
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(SubAccountDetailsResponsePlanInfoFeatures, dict): for key, value in self.items(): result[key] = value return result
(self)
60,123
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox
SubAccountDetailsResponsePlanInfoFeaturesInbox
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoFeaturesInbox(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 = { 'quantity': 'int', 'remaining': 'int' } attribute_map = { 'quantity': 'quantity', 'remaining': 'remaining' } def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesInbox - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining @property def quantity(self): """Gets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 Quantity of inbox provided # noqa: E501 :return: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 :rtype: int """ return self._quantity @quantity.setter def quantity(self, quantity): """Sets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesInbox. Quantity of inbox provided # noqa: E501 :param quantity: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 :type: int """ self._quantity = quantity @property def remaining(self): """Gets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 Available inboxes for use # noqa: E501 :return: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 :rtype: int """ return self._remaining @remaining.setter def remaining(self, remaining): """Sets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesInbox. Available inboxes for use # noqa: E501 :param remaining: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesInbox. # noqa: E501 :type: int """ self._remaining = remaining 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(SubAccountDetailsResponsePlanInfoFeaturesInbox, 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, SubAccountDetailsResponsePlanInfoFeaturesInbox): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(quantity=None, remaining=None)
60,124
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoFeaturesInbox): return False return self.__dict__ == other.__dict__
(self, other)
60,125
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox
__init__
SubAccountDetailsResponsePlanInfoFeaturesInbox - a model defined in Swagger
def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesInbox - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining
(self, quantity=None, remaining=None)
60,128
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox
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(SubAccountDetailsResponsePlanInfoFeaturesInbox, dict): for key, value in self.items(): result[key] = value return result
(self)
60,130
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page
SubAccountDetailsResponsePlanInfoFeaturesLandingPage
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoFeaturesLandingPage(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 = { 'quantity': 'int', 'remaining': 'int' } attribute_map = { 'quantity': 'quantity', 'remaining': 'remaining' } def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesLandingPage - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining @property def quantity(self): """Gets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 Quantity of landing pages provided # noqa: E501 :return: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 :rtype: int """ return self._quantity @quantity.setter def quantity(self, quantity): """Sets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. Quantity of landing pages provided # noqa: E501 :param quantity: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 :type: int """ self._quantity = quantity @property def remaining(self): """Gets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 Available landing pages for use # noqa: E501 :return: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 :rtype: int """ return self._remaining @remaining.setter def remaining(self, remaining): """Sets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. Available landing pages for use # noqa: E501 :param remaining: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesLandingPage. # noqa: E501 :type: int """ self._remaining = remaining 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(SubAccountDetailsResponsePlanInfoFeaturesLandingPage, 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, SubAccountDetailsResponsePlanInfoFeaturesLandingPage): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(quantity=None, remaining=None)
60,131
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoFeaturesLandingPage): return False return self.__dict__ == other.__dict__
(self, other)
60,132
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page
__init__
SubAccountDetailsResponsePlanInfoFeaturesLandingPage - a model defined in Swagger
def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesLandingPage - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining
(self, quantity=None, remaining=None)
60,135
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page
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(SubAccountDetailsResponsePlanInfoFeaturesLandingPage, dict): for key, value in self.items(): result[key] = value return result
(self)
60,137
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users
SubAccountDetailsResponsePlanInfoFeaturesUsers
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountDetailsResponsePlanInfoFeaturesUsers(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 = { 'quantity': 'int', 'remaining': 'int' } attribute_map = { 'quantity': 'quantity', 'remaining': 'remaining' } def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesUsers - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining @property def quantity(self): """Gets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 Quantity of multi-account's provided # noqa: E501 :return: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 :rtype: int """ return self._quantity @quantity.setter def quantity(self, quantity): """Sets the quantity of this SubAccountDetailsResponsePlanInfoFeaturesUsers. Quantity of multi-account's provided # noqa: E501 :param quantity: The quantity of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 :type: int """ self._quantity = quantity @property def remaining(self): """Gets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 Available multi-accounts for use # noqa: E501 :return: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 :rtype: int """ return self._remaining @remaining.setter def remaining(self, remaining): """Sets the remaining of this SubAccountDetailsResponsePlanInfoFeaturesUsers. Available multi-accounts for use # noqa: E501 :param remaining: The remaining of this SubAccountDetailsResponsePlanInfoFeaturesUsers. # noqa: E501 :type: int """ self._remaining = remaining 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(SubAccountDetailsResponsePlanInfoFeaturesUsers, 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, SubAccountDetailsResponsePlanInfoFeaturesUsers): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(quantity=None, remaining=None)
60,138
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountDetailsResponsePlanInfoFeaturesUsers): return False return self.__dict__ == other.__dict__
(self, other)
60,139
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users
__init__
SubAccountDetailsResponsePlanInfoFeaturesUsers - a model defined in Swagger
def __init__(self, quantity=None, remaining=None): # noqa: E501 """SubAccountDetailsResponsePlanInfoFeaturesUsers - a model defined in Swagger""" # noqa: E501 self._quantity = None self._remaining = None self.discriminator = None if quantity is not None: self.quantity = quantity if remaining is not None: self.remaining = remaining
(self, quantity=None, remaining=None)
60,142
sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users
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(SubAccountDetailsResponsePlanInfoFeaturesUsers, dict): for key, value in self.items(): result[key] = value return result
(self)
60,144
sib_api_v3_sdk.models.sub_account_update_plan_request
SubAccountUpdatePlanRequest
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountUpdatePlanRequest(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 = { 'credits': 'SubAccountUpdatePlanRequestCredits', 'features': 'SubAccountUpdatePlanRequestFeatures' } attribute_map = { 'credits': 'credits', 'features': 'features' } def __init__(self, credits=None, features=None): # noqa: E501 """SubAccountUpdatePlanRequest - a model defined in Swagger""" # noqa: E501 self._credits = None self._features = None self.discriminator = None if credits is not None: self.credits = credits if features is not None: self.features = features @property def credits(self): """Gets the credits of this SubAccountUpdatePlanRequest. # noqa: E501 :return: The credits of this SubAccountUpdatePlanRequest. # noqa: E501 :rtype: SubAccountUpdatePlanRequestCredits """ return self._credits @credits.setter def credits(self, credits): """Sets the credits of this SubAccountUpdatePlanRequest. :param credits: The credits of this SubAccountUpdatePlanRequest. # noqa: E501 :type: SubAccountUpdatePlanRequestCredits """ self._credits = credits @property def features(self): """Gets the features of this SubAccountUpdatePlanRequest. # noqa: E501 :return: The features of this SubAccountUpdatePlanRequest. # noqa: E501 :rtype: SubAccountUpdatePlanRequestFeatures """ return self._features @features.setter def features(self, features): """Sets the features of this SubAccountUpdatePlanRequest. :param features: The features of this SubAccountUpdatePlanRequest. # noqa: E501 :type: SubAccountUpdatePlanRequestFeatures """ self._features = features 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(SubAccountUpdatePlanRequest, 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, SubAccountUpdatePlanRequest): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(credits=None, features=None)
60,145
sib_api_v3_sdk.models.sub_account_update_plan_request
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountUpdatePlanRequest): return False return self.__dict__ == other.__dict__
(self, other)
60,146
sib_api_v3_sdk.models.sub_account_update_plan_request
__init__
SubAccountUpdatePlanRequest - a model defined in Swagger
def __init__(self, credits=None, features=None): # noqa: E501 """SubAccountUpdatePlanRequest - a model defined in Swagger""" # noqa: E501 self._credits = None self._features = None self.discriminator = None if credits is not None: self.credits = credits if features is not None: self.features = features
(self, credits=None, features=None)
60,149
sib_api_v3_sdk.models.sub_account_update_plan_request
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(SubAccountUpdatePlanRequest, dict): for key, value in self.items(): result[key] = value return result
(self)
60,151
sib_api_v3_sdk.models.sub_account_update_plan_request_credits
SubAccountUpdatePlanRequestCredits
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountUpdatePlanRequestCredits(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': 'int' } attribute_map = { 'email': 'email' } def __init__(self, email=None): # noqa: E501 """SubAccountUpdatePlanRequestCredits - a model defined in Swagger""" # noqa: E501 self._email = None self.discriminator = None if email is not None: self.email = email @property def email(self): """Gets the email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 Number of email credits # noqa: E501 :return: The email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 :rtype: int """ return self._email @email.setter def email(self, email): """Sets the email of this SubAccountUpdatePlanRequestCredits. Number of email credits # noqa: E501 :param email: The email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 :type: int """ self._email = email 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(SubAccountUpdatePlanRequestCredits, 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, SubAccountUpdatePlanRequestCredits): 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)
60,152
sib_api_v3_sdk.models.sub_account_update_plan_request_credits
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountUpdatePlanRequestCredits): return False return self.__dict__ == other.__dict__
(self, other)
60,153
sib_api_v3_sdk.models.sub_account_update_plan_request_credits
__init__
SubAccountUpdatePlanRequestCredits - a model defined in Swagger
def __init__(self, email=None): # noqa: E501 """SubAccountUpdatePlanRequestCredits - a model defined in Swagger""" # noqa: E501 self._email = None self.discriminator = None if email is not None: self.email = email
(self, email=None)
60,156
sib_api_v3_sdk.models.sub_account_update_plan_request_credits
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(SubAccountUpdatePlanRequestCredits, dict): for key, value in self.items(): result[key] = value return result
(self)
60,158
sib_api_v3_sdk.models.sub_account_update_plan_request_features
SubAccountUpdatePlanRequestFeatures
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountUpdatePlanRequestFeatures(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 = { 'users': 'int', 'landing_page': 'int', 'inbox': 'int' } attribute_map = { 'users': 'users', 'landing_page': 'landingPage', 'inbox': 'inbox' } def __init__(self, users=None, landing_page=None, inbox=None): # noqa: E501 """SubAccountUpdatePlanRequestFeatures - a model defined in Swagger""" # noqa: E501 self._users = None self._landing_page = None self._inbox = None self.discriminator = None if users is not None: self.users = users if landing_page is not None: self.landing_page = landing_page if inbox is not None: self.inbox = inbox @property def users(self): """Gets the users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 Number of multi-users # noqa: E501 :return: The users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :rtype: int """ return self._users @users.setter def users(self, users): """Sets the users of this SubAccountUpdatePlanRequestFeatures. Number of multi-users # noqa: E501 :param users: The users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :type: int """ self._users = users @property def landing_page(self): """Gets the landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 Number of landing pages # noqa: E501 :return: The landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :rtype: int """ return self._landing_page @landing_page.setter def landing_page(self, landing_page): """Sets the landing_page of this SubAccountUpdatePlanRequestFeatures. Number of landing pages # noqa: E501 :param landing_page: The landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :type: int """ self._landing_page = landing_page @property def inbox(self): """Gets the inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 Number of inboxes # noqa: E501 :return: The inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :rtype: int """ return self._inbox @inbox.setter def inbox(self, inbox): """Sets the inbox of this SubAccountUpdatePlanRequestFeatures. Number of inboxes # noqa: E501 :param inbox: The inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 :type: int """ self._inbox = inbox 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(SubAccountUpdatePlanRequestFeatures, 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, SubAccountUpdatePlanRequestFeatures): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(users=None, landing_page=None, inbox=None)
60,159
sib_api_v3_sdk.models.sub_account_update_plan_request_features
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountUpdatePlanRequestFeatures): return False return self.__dict__ == other.__dict__
(self, other)
60,160
sib_api_v3_sdk.models.sub_account_update_plan_request_features
__init__
SubAccountUpdatePlanRequestFeatures - a model defined in Swagger
def __init__(self, users=None, landing_page=None, inbox=None): # noqa: E501 """SubAccountUpdatePlanRequestFeatures - a model defined in Swagger""" # noqa: E501 self._users = None self._landing_page = None self._inbox = None self.discriminator = None if users is not None: self.users = users if landing_page is not None: self.landing_page = landing_page if inbox is not None: self.inbox = inbox
(self, users=None, landing_page=None, inbox=None)
60,163
sib_api_v3_sdk.models.sub_account_update_plan_request_features
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(SubAccountUpdatePlanRequestFeatures, dict): for key, value in self.items(): result[key] = value return result
(self)
60,165
sib_api_v3_sdk.models.sub_accounts_response
SubAccountsResponse
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountsResponse(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', 'sub_accounts': 'list[SubAccountsResponseSubAccounts]' } attribute_map = { 'count': 'count', 'sub_accounts': 'subAccounts' } def __init__(self, count=None, sub_accounts=None): # noqa: E501 """SubAccountsResponse - a model defined in Swagger""" # noqa: E501 self._count = None self._sub_accounts = None self.discriminator = None if count is not None: self.count = count if sub_accounts is not None: self.sub_accounts = sub_accounts @property def count(self): """Gets the count of this SubAccountsResponse. # noqa: E501 Total number of subaccounts # noqa: E501 :return: The count of this SubAccountsResponse. # noqa: E501 :rtype: int """ return self._count @count.setter def count(self, count): """Sets the count of this SubAccountsResponse. Total number of subaccounts # noqa: E501 :param count: The count of this SubAccountsResponse. # noqa: E501 :type: int """ self._count = count @property def sub_accounts(self): """Gets the sub_accounts of this SubAccountsResponse. # noqa: E501 :return: The sub_accounts of this SubAccountsResponse. # noqa: E501 :rtype: list[SubAccountsResponseSubAccounts] """ return self._sub_accounts @sub_accounts.setter def sub_accounts(self, sub_accounts): """Sets the sub_accounts of this SubAccountsResponse. :param sub_accounts: The sub_accounts of this SubAccountsResponse. # noqa: E501 :type: list[SubAccountsResponseSubAccounts] """ self._sub_accounts = sub_accounts 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(SubAccountsResponse, 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, SubAccountsResponse): 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, sub_accounts=None)
60,166
sib_api_v3_sdk.models.sub_accounts_response
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountsResponse): return False return self.__dict__ == other.__dict__
(self, other)
60,167
sib_api_v3_sdk.models.sub_accounts_response
__init__
SubAccountsResponse - a model defined in Swagger
def __init__(self, count=None, sub_accounts=None): # noqa: E501 """SubAccountsResponse - a model defined in Swagger""" # noqa: E501 self._count = None self._sub_accounts = None self.discriminator = None if count is not None: self.count = count if sub_accounts is not None: self.sub_accounts = sub_accounts
(self, count=None, sub_accounts=None)
60,170
sib_api_v3_sdk.models.sub_accounts_response
to_dict
Returns the model properties as a dict
def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(SubAccountsResponse, dict): for key, value in self.items(): result[key] = value return result
(self)
60,172
sib_api_v3_sdk.models.sub_accounts_response_sub_accounts
SubAccountsResponseSubAccounts
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class SubAccountsResponseSubAccounts(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', 'company_name': 'str', 'active': 'bool', 'created_at': 'int' } attribute_map = { 'id': 'id', 'company_name': 'companyName', 'active': 'active', 'created_at': 'createdAt' } def __init__(self, id=None, company_name=None, active=None, created_at=None): # noqa: E501 """SubAccountsResponseSubAccounts - a model defined in Swagger""" # noqa: E501 self._id = None self._company_name = None self._active = None self._created_at = None self.discriminator = None self.id = id self.company_name = company_name self.active = active self.created_at = created_at @property def id(self): """Gets the id of this SubAccountsResponseSubAccounts. # noqa: E501 id of the sub-account # noqa: E501 :return: The id of this SubAccountsResponseSubAccounts. # noqa: E501 :rtype: int """ return self._id @id.setter def id(self, id): """Sets the id of this SubAccountsResponseSubAccounts. id of the sub-account # noqa: E501 :param id: The id of this SubAccountsResponseSubAccounts. # 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 company_name(self): """Gets the company_name of this SubAccountsResponseSubAccounts. # noqa: E501 Name of the sub-account company # noqa: E501 :return: The company_name of this SubAccountsResponseSubAccounts. # noqa: E501 :rtype: str """ return self._company_name @company_name.setter def company_name(self, company_name): """Sets the company_name of this SubAccountsResponseSubAccounts. Name of the sub-account company # noqa: E501 :param company_name: The company_name of this SubAccountsResponseSubAccounts. # noqa: E501 :type: str """ if company_name is None: raise ValueError("Invalid value for `company_name`, must not be `None`") # noqa: E501 self._company_name = company_name @property def active(self): """Gets the active of this SubAccountsResponseSubAccounts. # noqa: E501 Whether the sub-account is active or not # noqa: E501 :return: The active of this SubAccountsResponseSubAccounts. # noqa: E501 :rtype: bool """ return self._active @active.setter def active(self, active): """Sets the active of this SubAccountsResponseSubAccounts. Whether the sub-account is active or not # noqa: E501 :param active: The active of this SubAccountsResponseSubAccounts. # noqa: E501 :type: bool """ if active is None: raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501 self._active = active @property def created_at(self): """Gets the created_at of this SubAccountsResponseSubAccounts. # noqa: E501 Timestamp when the sub-account was created # noqa: E501 :return: The created_at of this SubAccountsResponseSubAccounts. # noqa: E501 :rtype: int """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this SubAccountsResponseSubAccounts. Timestamp when the sub-account was created # noqa: E501 :param created_at: The created_at of this SubAccountsResponseSubAccounts. # noqa: E501 :type: int """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 self._created_at = created_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(SubAccountsResponseSubAccounts, 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, SubAccountsResponseSubAccounts): 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, company_name=None, active=None, created_at=None)
60,173
sib_api_v3_sdk.models.sub_accounts_response_sub_accounts
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SubAccountsResponseSubAccounts): return False return self.__dict__ == other.__dict__
(self, other)
60,174
sib_api_v3_sdk.models.sub_accounts_response_sub_accounts
__init__
SubAccountsResponseSubAccounts - a model defined in Swagger
def __init__(self, id=None, company_name=None, active=None, created_at=None): # noqa: E501 """SubAccountsResponseSubAccounts - a model defined in Swagger""" # noqa: E501 self._id = None self._company_name = None self._active = None self._created_at = None self.discriminator = None self.id = id self.company_name = company_name self.active = active self.created_at = created_at
(self, id=None, company_name=None, active=None, created_at=None)
60,177
sib_api_v3_sdk.models.sub_accounts_response_sub_accounts
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(SubAccountsResponseSubAccounts, dict): for key, value in self.items(): result[key] = value return result
(self)
60,179
sib_api_v3_sdk.models.task
Task
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class Task(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', 'task_type_id': 'str', 'name': 'str', 'contacts_ids': 'list[int]', 'deals_ids': 'list[str]', 'companies_ids': 'list[str]' } attribute_map = { 'id': 'id', 'task_type_id': 'taskTypeId', 'name': 'name', 'contacts_ids': 'contactsIds', 'deals_ids': 'dealsIds', 'companies_ids': 'companiesIds' } def __init__(self, id=None, task_type_id=None, name=None, contacts_ids=None, deals_ids=None, companies_ids=None): # noqa: E501 """Task - a model defined in Swagger""" # noqa: E501 self._id = None self._task_type_id = None self._name = None self._contacts_ids = None self._deals_ids = None self._companies_ids = None self.discriminator = None if id is not None: self.id = id self.task_type_id = task_type_id self.name = name if contacts_ids is not None: self.contacts_ids = contacts_ids if deals_ids is not None: self.deals_ids = deals_ids if companies_ids is not None: self.companies_ids = companies_ids @property def id(self): """Gets the id of this Task. # noqa: E501 Unique task id # noqa: E501 :return: The id of this Task. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this Task. Unique task id # noqa: E501 :param id: The id of this Task. # noqa: E501 :type: str """ self._id = id @property def task_type_id(self): """Gets the task_type_id of this Task. # noqa: E501 Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 :return: The task_type_id of this Task. # noqa: E501 :rtype: str """ return self._task_type_id @task_type_id.setter def task_type_id(self, task_type_id): """Sets the task_type_id of this Task. Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 :param task_type_id: The task_type_id of this Task. # noqa: E501 :type: str """ if task_type_id is None: raise ValueError("Invalid value for `task_type_id`, must not be `None`") # noqa: E501 self._task_type_id = task_type_id @property def name(self): """Gets the name of this Task. # noqa: E501 Name of task # noqa: E501 :return: The name of this Task. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Task. Name of task # noqa: E501 :param name: The name of this Task. # 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 contacts_ids(self): """Gets the contacts_ids of this Task. # noqa: E501 Contact ids for contacts linked to this task # noqa: E501 :return: The contacts_ids of this Task. # noqa: E501 :rtype: list[int] """ return self._contacts_ids @contacts_ids.setter def contacts_ids(self, contacts_ids): """Sets the contacts_ids of this Task. Contact ids for contacts linked to this task # noqa: E501 :param contacts_ids: The contacts_ids of this Task. # noqa: E501 :type: list[int] """ self._contacts_ids = contacts_ids @property def deals_ids(self): """Gets the deals_ids of this Task. # noqa: E501 Deal ids for deals a task is linked to # noqa: E501 :return: The deals_ids of this Task. # noqa: E501 :rtype: list[str] """ return self._deals_ids @deals_ids.setter def deals_ids(self, deals_ids): """Sets the deals_ids of this Task. Deal ids for deals a task is linked to # noqa: E501 :param deals_ids: The deals_ids of this Task. # noqa: E501 :type: list[str] """ self._deals_ids = deals_ids @property def companies_ids(self): """Gets the companies_ids of this Task. # noqa: E501 Companies ids for companies a task is linked to # noqa: E501 :return: The companies_ids of this Task. # noqa: E501 :rtype: list[str] """ return self._companies_ids @companies_ids.setter def companies_ids(self, companies_ids): """Sets the companies_ids of this Task. Companies ids for companies a task is linked to # noqa: E501 :param companies_ids: The companies_ids of this Task. # noqa: E501 :type: list[str] """ self._companies_ids = companies_ids def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(Task, 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, Task): 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, task_type_id=None, name=None, contacts_ids=None, deals_ids=None, companies_ids=None)
60,180
sib_api_v3_sdk.models.task
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, Task): return False return self.__dict__ == other.__dict__
(self, other)
60,181
sib_api_v3_sdk.models.task
__init__
Task - a model defined in Swagger
def __init__(self, id=None, task_type_id=None, name=None, contacts_ids=None, deals_ids=None, companies_ids=None): # noqa: E501 """Task - a model defined in Swagger""" # noqa: E501 self._id = None self._task_type_id = None self._name = None self._contacts_ids = None self._deals_ids = None self._companies_ids = None self.discriminator = None if id is not None: self.id = id self.task_type_id = task_type_id self.name = name if contacts_ids is not None: self.contacts_ids = contacts_ids if deals_ids is not None: self.deals_ids = deals_ids if companies_ids is not None: self.companies_ids = companies_ids
(self, id=None, task_type_id=None, name=None, contacts_ids=None, deals_ids=None, companies_ids=None)
60,184
sib_api_v3_sdk.models.task
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(Task, dict): for key, value in self.items(): result[key] = value return result
(self)
60,186
sib_api_v3_sdk.models.task_list
TaskList
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class TaskList(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 = { 'items': 'list[Task]' } attribute_map = { 'items': 'items' } def __init__(self, items=None): # noqa: E501 """TaskList - a model defined in Swagger""" # noqa: E501 self._items = None self.discriminator = None if items is not None: self.items = items @property def items(self): """Gets the items of this TaskList. # noqa: E501 List of tasks # noqa: E501 :return: The items of this TaskList. # noqa: E501 :rtype: list[Task] """ return self._items @items.setter def items(self, items): """Sets the items of this TaskList. List of tasks # noqa: E501 :param items: The items of this TaskList. # noqa: E501 :type: list[Task] """ self._items = items 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(TaskList, 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, TaskList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(items=None)
60,187
sib_api_v3_sdk.models.task_list
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, TaskList): return False return self.__dict__ == other.__dict__
(self, other)
60,188
sib_api_v3_sdk.models.task_list
__init__
TaskList - a model defined in Swagger
def __init__(self, items=None): # noqa: E501 """TaskList - a model defined in Swagger""" # noqa: E501 self._items = None self.discriminator = None if items is not None: self.items = items
(self, items=None)
60,191
sib_api_v3_sdk.models.task_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(TaskList, dict): for key, value in self.items(): result[key] = value return result
(self)
60,193
sib_api_v3_sdk.models.task_reminder
TaskReminder
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class TaskReminder(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 = { 'value': 'int', 'unit': 'str', 'types': 'list[str]' } attribute_map = { 'value': 'value', 'unit': 'unit', 'types': 'types' } def __init__(self, value=None, unit=None, types=None): # noqa: E501 """TaskReminder - a model defined in Swagger""" # noqa: E501 self._value = None self._unit = None self._types = None self.discriminator = None self.value = value self.unit = unit self.types = types @property def value(self): """Gets the value of this TaskReminder. # noqa: E501 Value of time unit before reminder is to be sent # noqa: E501 :return: The value of this TaskReminder. # noqa: E501 :rtype: int """ return self._value @value.setter def value(self, value): """Sets the value of this TaskReminder. Value of time unit before reminder is to be sent # noqa: E501 :param value: The value of this TaskReminder. # noqa: E501 :type: int """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @property def unit(self): """Gets the unit of this TaskReminder. # noqa: E501 Unit of time before reminder is to be sent # noqa: E501 :return: The unit of this TaskReminder. # noqa: E501 :rtype: str """ return self._unit @unit.setter def unit(self, unit): """Sets the unit of this TaskReminder. Unit of time before reminder is to be sent # noqa: E501 :param unit: The unit of this TaskReminder. # noqa: E501 :type: str """ if unit is None: raise ValueError("Invalid value for `unit`, must not be `None`") # noqa: E501 allowed_values = ["minutes", "hours", "weeks", "days"] # noqa: E501 if unit not in allowed_values: raise ValueError( "Invalid value for `unit` ({0}), must be one of {1}" # noqa: E501 .format(unit, allowed_values) ) self._unit = unit @property def types(self): """Gets the types of this TaskReminder. # noqa: E501 Type of task reminder e.g email, push # noqa: E501 :return: The types of this TaskReminder. # noqa: E501 :rtype: list[str] """ return self._types @types.setter def types(self, types): """Sets the types of this TaskReminder. Type of task reminder e.g email, push # noqa: E501 :param types: The types of this TaskReminder. # noqa: E501 :type: list[str] """ if types is None: raise ValueError("Invalid value for `types`, must not be `None`") # noqa: E501 self._types = types 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(TaskReminder, 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, TaskReminder): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
(value=None, unit=None, types=None)
60,194
sib_api_v3_sdk.models.task_reminder
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, TaskReminder): return False return self.__dict__ == other.__dict__
(self, other)
60,195
sib_api_v3_sdk.models.task_reminder
__init__
TaskReminder - a model defined in Swagger
def __init__(self, value=None, unit=None, types=None): # noqa: E501 """TaskReminder - a model defined in Swagger""" # noqa: E501 self._value = None self._unit = None self._types = None self.discriminator = None self.value = value self.unit = unit self.types = types
(self, value=None, unit=None, types=None)
60,198
sib_api_v3_sdk.models.task_reminder
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(TaskReminder, dict): for key, value in self.items(): result[key] = value return result
(self)
60,200
sib_api_v3_sdk.models.task_types
TaskTypes
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
class TaskTypes(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', 'title': 'str' } attribute_map = { 'id': 'id', 'title': 'title' } def __init__(self, id=None, title=None): # noqa: E501 """TaskTypes - a model defined in Swagger""" # noqa: E501 self._id = None self._title = None self.discriminator = None if id is not None: self.id = id if title is not None: self.title = title @property def id(self): """Gets the id of this TaskTypes. # noqa: E501 Id of task type # noqa: E501 :return: The id of this TaskTypes. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this TaskTypes. Id of task type # noqa: E501 :param id: The id of this TaskTypes. # noqa: E501 :type: str """ self._id = id @property def title(self): """Gets the title of this TaskTypes. # noqa: E501 Title of task type # noqa: E501 :return: The title of this TaskTypes. # noqa: E501 :rtype: str """ return self._title @title.setter def title(self, title): """Sets the title of this TaskTypes. Title of task type # noqa: E501 :param title: The title of this TaskTypes. # noqa: E501 :type: str """ self._title = title 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(TaskTypes, 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, TaskTypes): 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, title=None)
60,201
sib_api_v3_sdk.models.task_types
__eq__
Returns true if both objects are equal
def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, TaskTypes): return False return self.__dict__ == other.__dict__
(self, other)
60,202
sib_api_v3_sdk.models.task_types
__init__
TaskTypes - a model defined in Swagger
def __init__(self, id=None, title=None): # noqa: E501 """TaskTypes - a model defined in Swagger""" # noqa: E501 self._id = None self._title = None self.discriminator = None if id is not None: self.id = id if title is not None: self.title = title
(self, id=None, title=None)
60,205
sib_api_v3_sdk.models.task_types
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(TaskTypes, dict): for key, value in self.items(): result[key] = value return result
(self)
60,207
sib_api_v3_sdk.api.tasks_api
TasksApi
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 TasksApi(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 crm_tasks_get(self, **kwargs): # noqa: E501 """Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 else: (data) = self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 return data def crm_tasks_get_with_http_info(self, **kwargs): # noqa: E501 """Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread. """ all_params = ['filter_type', 'filter_status', 'filter_date', 'filter_assign_to', 'filter_contacts', 'filter_deals', 'filter_companies', 'date_from', 'date_to', 'offset', 'limit', 'sort', 'sort_by'] # 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 crm_tasks_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'filter_type' in params: query_params.append(('filter[type]', params['filter_type'])) # noqa: E501 if 'filter_status' in params: query_params.append(('filter[status]', params['filter_status'])) # noqa: E501 if 'filter_date' in params: query_params.append(('filter[date]', params['filter_date'])) # noqa: E501 if 'filter_assign_to' in params: query_params.append(('filter[assignTo]', params['filter_assign_to'])) # noqa: E501 if 'filter_contacts' in params: query_params.append(('filter[contacts]', params['filter_contacts'])) # noqa: E501 if 'filter_deals' in params: query_params.append(('filter[deals]', params['filter_deals'])) # noqa: E501 if 'filter_companies' in params: query_params.append(('filter[companies]', params['filter_companies'])) # noqa: E501 if 'date_from' in params: query_params.append(('dateFrom', params['date_from'])) # noqa: E501 if 'date_to' in params: query_params.append(('dateTo', params['date_to'])) # noqa: E501 if 'offset' in params: query_params.append(('offset', params['offset'])) # noqa: E501 if 'limit' in params: query_params.append(('limit', params['limit'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 if 'sort_by' in params: query_params.append(('sortBy', params['sort_by'])) # 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( '/crm/tasks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TaskList', # 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 crm_tasks_id_delete(self, id, **kwargs): # noqa: E501 """Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 return data def crm_tasks_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # 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 crm_tasks_id_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # 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( '/crm/tasks/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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 crm_tasks_id_get(self, id, **kwargs): # noqa: E501 """Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 return data def crm_tasks_id_get_with_http_info(self, id, **kwargs): # noqa: E501 """Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # 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 crm_tasks_id_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # 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( '/crm/tasks/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Task', # 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 crm_tasks_id_patch(self, id, body, **kwargs): # noqa: E501 """Update a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_patch(id, body, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param Body7 body: Updated task details. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 return data def crm_tasks_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 """Update a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_patch_with_http_info(id, body, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param Body7 body: Updated task details. (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'body'] # 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 crm_tasks_id_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_patch`") # noqa: E501 # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `crm_tasks_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # 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( '/crm/tasks/{id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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 crm_tasks_post(self, body, **kwargs): # noqa: E501 """Create a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_post(body, async_req=True) >>> result = thread.get() :param async_req bool :param Body6 body: Task name. (required) :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_post_with_http_info(body, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_post_with_http_info(body, **kwargs) # noqa: E501 return data def crm_tasks_post_with_http_info(self, body, **kwargs): # noqa: E501 """Create a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_post_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool :param Body6 body: Task name. (required) :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ all_params = ['body'] # 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 crm_tasks_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `crm_tasks_post`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # 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( '/crm/tasks', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse2011', # 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 crm_tasktypes_get(self, **kwargs): # noqa: E501 """Get all task types # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasktypes_get(async_req=True) >>> result = thread.get() :param async_req bool :return: TaskTypes If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasktypes_get_with_http_info(**kwargs) # noqa: E501 else: (data) = self.crm_tasktypes_get_with_http_info(**kwargs) # noqa: E501 return data def crm_tasktypes_get_with_http_info(self, **kwargs): # noqa: E501 """Get all task types # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasktypes_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: TaskTypes If the method is called asynchronously, returns the request thread. """ all_params = [] # 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 crm_tasktypes_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} 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( '/crm/tasktypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TaskTypes', # 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)
60,209
sib_api_v3_sdk.api.tasks_api
crm_tasks_get
Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread.
def crm_tasks_get(self, **kwargs): # noqa: E501 """Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 else: (data) = self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 return data
(self, **kwargs)
60,210
sib_api_v3_sdk.api.tasks_api
crm_tasks_get_with_http_info
Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread.
def crm_tasks_get_with_http_info(self, **kwargs): # noqa: E501 """Get all tasks # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str filter_type: Filter by task type (ID) :param str filter_status: Filter by task status :param str filter_date: Filter by date :param str filter_assign_to: Filter by assignTo id :param str filter_contacts: Filter by contact ids :param str filter_deals: Filter by deals ids :param str filter_companies: Filter by companies ids :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) :param int date_to: dateTo to date range filter type (timestamp in milliseconds) :param int offset: Index of the first document of the page :param int limit: Number of documents per page :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed :param str sort_by: The field used to sort field names. :return: TaskList If the method is called asynchronously, returns the request thread. """ all_params = ['filter_type', 'filter_status', 'filter_date', 'filter_assign_to', 'filter_contacts', 'filter_deals', 'filter_companies', 'date_from', 'date_to', 'offset', 'limit', 'sort', 'sort_by'] # 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 crm_tasks_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'filter_type' in params: query_params.append(('filter[type]', params['filter_type'])) # noqa: E501 if 'filter_status' in params: query_params.append(('filter[status]', params['filter_status'])) # noqa: E501 if 'filter_date' in params: query_params.append(('filter[date]', params['filter_date'])) # noqa: E501 if 'filter_assign_to' in params: query_params.append(('filter[assignTo]', params['filter_assign_to'])) # noqa: E501 if 'filter_contacts' in params: query_params.append(('filter[contacts]', params['filter_contacts'])) # noqa: E501 if 'filter_deals' in params: query_params.append(('filter[deals]', params['filter_deals'])) # noqa: E501 if 'filter_companies' in params: query_params.append(('filter[companies]', params['filter_companies'])) # noqa: E501 if 'date_from' in params: query_params.append(('dateFrom', params['date_from'])) # noqa: E501 if 'date_to' in params: query_params.append(('dateTo', params['date_to'])) # noqa: E501 if 'offset' in params: query_params.append(('offset', params['offset'])) # noqa: E501 if 'limit' in params: query_params.append(('limit', params['limit'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 if 'sort_by' in params: query_params.append(('sortBy', params['sort_by'])) # 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( '/crm/tasks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TaskList', # 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, **kwargs)
60,211
sib_api_v3_sdk.api.tasks_api
crm_tasks_id_delete
Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread.
def crm_tasks_id_delete(self, id, **kwargs): # noqa: E501 """Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 return data
(self, id, **kwargs)
60,212
sib_api_v3_sdk.api.tasks_api
crm_tasks_id_delete_with_http_info
Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread.
def crm_tasks_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 """Delete a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_delete_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # 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 crm_tasks_id_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # 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( '/crm/tasks/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # 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, id, **kwargs)
60,213
sib_api_v3_sdk.api.tasks_api
crm_tasks_id_get
Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread.
def crm_tasks_id_get(self, id, **kwargs): # noqa: E501 """Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 return data
(self, id, **kwargs)
60,214
sib_api_v3_sdk.api.tasks_api
crm_tasks_id_get_with_http_info
Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread.
def crm_tasks_id_get_with_http_info(self, id, **kwargs): # noqa: E501 """Get a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_get_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :return: Task If the method is called asynchronously, returns the request thread. """ all_params = ['id'] # 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 crm_tasks_id_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params or params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in params: path_params['id'] = params['id'] # 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( '/crm/tasks/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Task', # 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, id, **kwargs)
60,215
sib_api_v3_sdk.api.tasks_api
crm_tasks_id_patch
Update a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_patch(id, body, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param Body7 body: Updated task details. (required) :return: None If the method is called asynchronously, returns the request thread.
def crm_tasks_id_patch(self, id, body, **kwargs): # noqa: E501 """Update a task # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.crm_tasks_id_patch(id, body, async_req=True) >>> result = thread.get() :param async_req bool :param str id: (required) :param Body7 body: Updated task details. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 else: (data) = self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 return data
(self, id, body, **kwargs)