MCPcopy Index your code
hub / github.com/StackStorm/st2 / match

Method match

st2client/st2client/models/core.py:463–472  ·  view source on GitHub ↗
(self, instance, **kwargs)

Source from the content-addressed store, hash-verified

461class ActionAliasResourceManager(ResourceManager):
462 @add_auth_token_to_kwargs_from_env
463 def match(self, instance, **kwargs):
464 url = "/%s/match" % self.resource.get_url_path_name()
465 response = self.client.post(url, instance.serialize(), **kwargs)
466 if response.status_code != http_client.OK:
467 self.handle_error(response)
468 match = parse_api_response(response)
469 return (
470 self.resource.deserialize(match["actionalias"]),
471 match["representation"],
472 )
473
474
475class ActionAliasExecutionManager(ResourceManager):

Callers

nothing calls this directly

Calls 6

parse_api_responseFunction · 0.85
get_url_path_nameMethod · 0.80
serializeMethod · 0.80
deserializeMethod · 0.80
postMethod · 0.45
handle_errorMethod · 0.45

Tested by

no test coverage detected