Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
sincpro-siat-soap / services / operations / health_check.py
Size: Mime:
from sincpro_siat_soap import DataTransferObject, Feature, siat_soap_sdk
from sincpro_siat_soap.global_definitions import SIAT_WSDL


class CmdCheckHealthOperations(DataTransferObject):
    pass


class ResCheckHealthOperations(DataTransferObject):
    is_up: bool


@siat_soap_sdk.feature(CmdCheckHealthOperations)
class CheckHealth(Feature):

    def execute(self, dto: CmdCheckHealthOperations) -> ResCheckHealthOperations:
        response = self.soap_client(SIAT_WSDL.OPERACIONES).service.verificarComunicacion()
        return ResCheckHealthOperations(is_up=response["transaccion"])