@check_cache(Group)<EOL><INDENT>@one_of_keyword_only('<STR_LIT:id>', '<STR_LIT:name>')<EOL>def get(self, key, value):<DEDENT>
if key == '<STR_LIT:id>':<EOL><INDENT>response = self._swimlane.request('<STR_LIT>', '<STR_LIT>'.format(value))<EOL>return Group(self._swimlane, response.json())<EOL><DEDENT>else:<EOL><INDENT>response = self._swimlane.request('<STR_LIT>', '<STR_LIT>'.format(value))<EOL>matched_groups = response.json()<EOL>for group_data in matched_groups:<EOL><INDENT>if group_data.get('<STR_LIT:name>') == value:<EOL><INDENT>return Group(self._swimlane, group_data)<EOL><DEDENT><DEDENT>raise ValueError('<STR_LIT>'.format(value))<EOL><DEDENT>
Retrieve single group record by id or name

        Supports resource cache

        Keyword Args:
            id (str): Full Group ID
            name (str): Group name

        Raises:
            TypeError: Unexpected or more than one keyword argument provided
            ValueError: No matching group found based on provided inputs

        Returns:
            Group: Group instance matching provided inputs