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

Method to_model

st2common/st2common/models/api/pack.py:265–270  ·  view source on GitHub ↗
(cls, config_schema)

Source from the content-addressed store, hash-verified

263
264 @classmethod
265 def to_model(cls, config_schema):
266 pack = config_schema.pack
267 attributes = config_schema.attributes
268
269 model = cls.model(pack=pack, attributes=attributes)
270 return model
271
272
273class ConfigAPI(BaseAPI):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected