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

Method match

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

Source from the content-addressed store, hash-verified

727
728 @add_auth_token_to_kwargs_from_env
729 def match(self, instance, **kwargs):
730 url = "/%s/match" % self.resource.get_url_path_name()
731 response = self.client.post(url, instance.serialize(), **kwargs)
732 if response.status_code != http_client.OK:
733 self.handle_error(response)
734 match = parse_api_response(response)
735 return (
736 self.resource.deserialize(match["actionalias"]),
737 match["representation"],
738 )
739
740
741class StreamManager(ResourceManager):

Callers 3

get_valueFunction · 0.45
runMethod · 0.45
side_effectMethod · 0.45

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 1

side_effectMethod · 0.36