MCPcopy Create free account
hub / github.com/StackStorm/st2 / to_model

Method to_model

st2common/st2common/models/api/action.py:551–561  ·  view source on GitHub ↗
(cls, state)

Source from the content-addressed store, hash-verified

549
550 @classmethod
551 def to_model(cls, state):
552 execution_id = state.execution_id
553 query_module = state.query_module
554 query_context = state.query_context
555
556 model = cls.model(
557 execution_id=execution_id,
558 query_module=query_module,
559 query_context=query_context,
560 )
561 return model
562
563
564class ActionAliasAPI(BaseAPI, APIUIDMixin):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected