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

Class ActionAliasExecutionManager

st2client/st2client/models/core.py:475–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473
474
475class ActionAliasExecutionManager(ResourceManager):
476 @add_auth_token_to_kwargs_from_env
477 def match_and_execute(self, instance, **kwargs):
478 url = "/%s/match_and_execute" % self.resource.get_url_path_name()
479 response = self.client.post(url, instance.serialize(), **kwargs)
480
481 if response.status_code != http_client.OK:
482 self.handle_error(response)
483 instance = self.resource.deserialize(parse_api_response(response)["results"][0])
484 return instance
485
486
487class ActionResourceManager(ResourceManager):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected