| 473 | |
| 474 | |
| 475 | class 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 | |
| 487 | class ActionResourceManager(ResourceManager): |