@classmethod
def make_from_service_response(cls, resp, is_rest: bool=False) ->'Response':
    """
        Build resource from soap-service response
        :param resp:        service soap/rest response
        :param is_rest:     indicate rest request
        """
    code = None
    status = False
    message = None
    more_results = False
    request_id = None
    results = []
    if resp is None:
        return cls()
    if is_rest:
        code = resp.status_code
        status = True if code == 200 else False
        results = resp.json()
    else:
        code = resp[0]
        body = resp[1]
        if body and 'RequestID' in body:
            request_id = body['RequestID']
        if code == 200:
            status = True
            if 'OverallStatus' in body:
                message = body['OverallStatus']
                if body['OverallStatus'] == 'MoreDataAvailable':
                    more_results = True
                elif body['OverallStatus'] != 'OK':
                    status = False
            body_container_tag = None
            if 'Results' in body:
                body_container_tag = 'Results'
            elif 'ObjectDefinition' in body:
                body_container_tag = 'ObjectDefinition'
            if body_container_tag is not None:
                results = body[body_container_tag]
    inst = cls()
    inst.raw_response = resp
    inst.code = code
    inst.status = status
    inst.message = message
    inst.more_results = more_results
    inst.request_id = request_id
    inst.results = results
    inst.valid_response = True
    return inst
