{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/19","repository_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python","labels_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/19/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/19/events","html_url":"https://github.com/ManageIQ/manageiq-api-client-python/pull/19","id":202570551,"number":19,"title":"return complete response if asked","user":{"login":"mkoura","id":2352619,"avatar_url":"https://avatars.githubusercontent.com/u/2352619?v=3","gravatar_id":"","url":"https://api.github.com/users/mkoura","html_url":"https://github.com/mkoura","followers_url":"https://api.github.com/users/mkoura/followers","following_url":"https://api.github.com/users/mkoura/following{/other_user}","gists_url":"https://api.github.com/users/mkoura/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoura/subscriptions","organizations_url":"https://api.github.com/users/mkoura/orgs","repos_url":"https://api.github.com/users/mkoura/repos","events_url":"https://api.github.com/users/mkoura/events{/privacy}","received_events_url":"https://api.github.com/users/mkoura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-23T15:47:09Z","updated_at":"2017-01-23T21:16:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/pulls/19","html_url":"https://github.com/ManageIQ/manageiq-api-client-python/pull/19","diff_url":"https://github.com/ManageIQ/manageiq-api-client-python/pull/19.diff","patch_url":"https://github.com/ManageIQ/manageiq-api-client-python/pull/19.patch"},"body":"Currently it's not possible to get response data like HTTP status.\r\nThis PR proposes a way how to access such data and maintain backwards compatibility.\r\n\r\nThis way I can do e.g.:\r\n```\r\nIn [3]: response = api.collections.notifications[0].action.delete(full_response=True)\r\nIn [4]: response\r\nOut[4]: Response(processed=<Entity u'https://10.8.199.177/api/notifications/7'>, raw=<Response [200]>)\r\nIn [5]: response.raw.status_code\r\nOut[5]: 200\r\nIn [6]: api.collections.notifications.reload()\r\nIn [7]: api.collections.notifications[0].action.delete()\r\nOut[7]: <Entity u'https://10.8.199.177/api/notifications/9'>\r\n```"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/comments/274619434","html_url":"https://github.com/ManageIQ/manageiq-api-client-python/pull/19#issuecomment-274619434","issue_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client-python/issues/19","id":274619434,"user":{"login":"simon3z","id":130393,"avatar_url":"https://avatars.githubusercontent.com/u/130393?v=3","gravatar_id":"","url":"https://api.github.com/users/simon3z","html_url":"https://github.com/simon3z","followers_url":"https://api.github.com/users/simon3z/followers","following_url":"https://api.github.com/users/simon3z/following{/other_user}","gists_url":"https://api.github.com/users/simon3z/gists{/gist_id}","starred_url":"https://api.github.com/users/simon3z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon3z/subscriptions","organizations_url":"https://api.github.com/users/simon3z/orgs","repos_url":"https://api.github.com/users/simon3z/repos","events_url":"https://api.github.com/users/simon3z/events{/privacy}","received_events_url":"https://api.github.com/users/simon3z/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T21:16:10Z","updated_at":"2017-01-23T21:16:10Z","body":"@dkorn @cben please review"}}
{"actor":{"display_login":"simon3z"}}