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

Class ActionAliasResourceManager

st2client/st2client/models/core.py:461–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459
460
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 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected