def __auth_descriptor(self, api_info):
if api_info.auth is None:<EOL><INDENT>return None<EOL><DEDENT>auth_descriptor = {}<EOL>if api_info.auth.allow_cookie_auth is not None:<EOL><INDENT>auth_descriptor['<STR_LIT>'] = api_info.auth.allow_cookie_auth<EOL><DEDENT>if api_info.auth.blocked_regions:<EOL><INDENT>auth_descriptor['<STR_LIT>'] = api_info.auth.blocked_regions<EOL><DEDENT>return auth_descriptor<EOL>
Builds an auth descriptor from API info.

        Args:
          api_info: An _ApiInfo object.

        Returns:
          A dictionary with 'allowCookieAuth' and/or 'blockedRegions' keys.