silo.low_code_steps.standard.network_request module

class silo.low_code_steps.standard.network_request.StaticValueRequest(credential, cache_read=True, result_cache=None)

Bases: RequestMaker

agent_supported = True
call(request, action_number)

Returns the first element in the requests

Parameters
  • request (ResultContainer) – ResultContainer that need to be executed

  • action_number (int) – Action number assigned to the execution of the action

Returns

ResultContainer where the result is value passed in

Return type

ResultContainer

static generate_agent_config(da_job, result_containers)

Generate an agent configuration for the Requestor / DA Job

This function generates all required configurations and returns them as a list of messages. This allows agent alignment to occur with the proper configuration to collect the required collections. If this function is not implemented, execution on the agent will not occur.

Parameters
  • da_job (dict) – Dynamic Application job pertaining to a specific app / device id.

  • result_containers (list) – List of result containers for the current collections

Returns

List of messages that can be used to generate the config

Return type

list

static get_desc()
static get_name()
static manipulate_agent_data(result)

Strip out the newline character

Parameters

result (object) – Results from the agent

validate_request(request)

Ensure the incoming ResultContainer is valid for the Requestor

Validate the ResultContainer is valid. If it is invalid, raise an exception to indicate the ResultContainer cannot be collected by the Requestor.

Parameters

request (ResultContainer) – Request to validate