(self, instance, **kwargs)
| 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 | |
| 741 | class StreamManager(ResourceManager): |