in backend-printing/helper/sap_client.py [0:0]
def __init__(self, sap_system_config: SAPSystem):
"""Constructor for SAPSystem
Args:
sap_sid (string): SAP system ID
sap_user (string): SAP username that has access to the ODATA service
sap_password (string): SAP password for the user
sap_hostname (string): URL of the ODATA service
sap_print_queues (list(PrintQueue), optional): List of print queues. Defaults to None.
skip_ssl_verification (bool, optional): Boolean whether to skip SSL verification.
"""
self.sap_sid = sap_system_config.sap_sid
self.sap_user = sap_system_config.sap_user
self.sap_password = sap_system_config.sap_password
self.sap_hostname = sap_system_config.sap_hostname
self.sap_print_queues = sap_system_config.sap_print_queues
self.skip_ssl_verification = sap_system_config.skip_ssl_verification
self.api_url = BASE_URL % self.sap_hostname