def _parse_properties(response, result_class):
if response is None or response.headers is None:<EOL><INDENT>return None<EOL><DEDENT>props = result_class()<EOL>for key, value in response.headers.items():<EOL><INDENT>info = GET_PROPERTIES_ATTRIBUTE_MAP.get(key)<EOL>if info:<EOL><INDENT>if info[<NUM_LIT:0>] is None:<EOL><INDENT>setattr(props, info[<NUM_LIT:1>], info[<NUM_LIT:2>](value))<EOL><DEDENT>else:<EOL><INDENT>attr = getattr(props, info[<NUM_LIT:0>])<EOL>setattr(attr, info[<NUM_LIT:1>], info[<NUM_LIT:2>](value))<EOL><DEDENT><DEDENT><DEDENT>return props<EOL>
Extracts out resource properties and metadata information.
Ignores the standard http headers.