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

Method to_model

st2common/st2common/models/api/pack.py:332–337  ·  view source on GitHub ↗
(cls, config)

Source from the content-addressed store, hash-verified

330
331 @classmethod
332 def to_model(cls, config):
333 pack = config.pack
334 values = config.values
335
336 model = cls.model(pack=pack, values=values)
337 return model
338
339
340class ConfigUpdateRequestAPI(BaseAPI):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected