{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/comments/37509265","id":37509265,"diff_hunk":"@@ -0,0 +1,66 @@\n+from sets import Set\n+import json\n+\n+from ..base_request import BaseRequest\n+from ..resources import Message\n+from ..settings import Settings\n+import resin.exceptions as ResinException\n+\n+NETWORK_WIFI = 'wifi'\n+NETWORK_ETHERNET = 'ethernet'\n+\n+NETWORK_TYPES = [\n+\tNETWORK_WIFI,\n+\tNETWORK_ETHERNET\n+]\n+\n+VALID_OPTIONS = [","path":"models/device_os.py","position":16,"original_position":17,"commit_id":"e8d991a5b51949cd82a7d285273010086ccd9e1f","original_commit_id":"4aba771f2a6916dc62ba7fa43c479205f63e1c11","user":{"login":"emirotin","id":525832,"avatar_url":"https://avatars.githubusercontent.com/u/525832?v=3","gravatar_id":"","url":"https://api.github.com/users/emirotin","html_url":"https://github.com/emirotin","followers_url":"https://api.github.com/users/emirotin/followers","following_url":"https://api.github.com/users/emirotin/following{/other_user}","gists_url":"https://api.github.com/users/emirotin/gists{/gist_id}","starred_url":"https://api.github.com/users/emirotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirotin/subscriptions","organizations_url":"https://api.github.com/users/emirotin/orgs","repos_url":"https://api.github.com/users/emirotin/repos","events_url":"https://api.github.com/users/emirotin/events{/privacy}","received_events_url":"https://api.github.com/users/emirotin/received_events","type":"User","site_admin":false},"body":"Cool :)","created_at":"2015-08-20T09:10:24Z","updated_at":"2015-08-20T09:10:24Z","html_url":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6#discussion_r37509265","pull_request_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/comments/37509265"},"html":{"href":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6#discussion_r37509265"},"pull_request":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6","id":42785800,"html_url":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6","diff_url":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6.diff","patch_url":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6.patch","issue_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/6","number":6,"state":"open","locked":false,"title":"Adding Logs module and Fix bugs","user":{"login":"nghiant2710","id":8970907,"avatar_url":"https://avatars.githubusercontent.com/u/8970907?v=3","gravatar_id":"","url":"https://api.github.com/users/nghiant2710","html_url":"https://github.com/nghiant2710","followers_url":"https://api.github.com/users/nghiant2710/followers","following_url":"https://api.github.com/users/nghiant2710/following{/other_user}","gists_url":"https://api.github.com/users/nghiant2710/gists{/gist_id}","starred_url":"https://api.github.com/users/nghiant2710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghiant2710/subscriptions","organizations_url":"https://api.github.com/users/nghiant2710/orgs","repos_url":"https://api.github.com/users/nghiant2710/repos","events_url":"https://api.github.com/users/nghiant2710/events{/privacy}","received_events_url":"https://api.github.com/users/nghiant2710/received_events","type":"User","site_admin":false},"body":"- Adding Logs module\r\n- Adding exception handling.\r\n- Rename Os module -> device_os\r\n- Fix some bugs","created_at":"2015-08-19T07:51:19Z","updated_at":"2015-08-20T09:10:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ec5dabe392cdcb8d2c0732b763dc7443a654c68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6/commits","review_comments_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6/comments","review_comment_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/6/comments","statuses_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/statuses/e8d991a5b51949cd82a7d285273010086ccd9e1f","head":{"label":"nghiant2710:master","ref":"master","sha":"e8d991a5b51949cd82a7d285273010086ccd9e1f","user":{"login":"nghiant2710","id":8970907,"avatar_url":"https://avatars.githubusercontent.com/u/8970907?v=3","gravatar_id":"","url":"https://api.github.com/users/nghiant2710","html_url":"https://github.com/nghiant2710","followers_url":"https://api.github.com/users/nghiant2710/followers","following_url":"https://api.github.com/users/nghiant2710/following{/other_user}","gists_url":"https://api.github.com/users/nghiant2710/gists{/gist_id}","starred_url":"https://api.github.com/users/nghiant2710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghiant2710/subscriptions","organizations_url":"https://api.github.com/users/nghiant2710/orgs","repos_url":"https://api.github.com/users/nghiant2710/repos","events_url":"https://api.github.com/users/nghiant2710/events{/privacy}","received_events_url":"https://api.github.com/users/nghiant2710/received_events","type":"User","site_admin":false},"repo":{"id":39942911,"name":"resin-python-wrapper","full_name":"nghiant2710/resin-python-wrapper","owner":{"login":"nghiant2710","id":8970907,"avatar_url":"https://avatars.githubusercontent.com/u/8970907?v=3","gravatar_id":"","url":"https://api.github.com/users/nghiant2710","html_url":"https://github.com/nghiant2710","followers_url":"https://api.github.com/users/nghiant2710/followers","following_url":"https://api.github.com/users/nghiant2710/following{/other_user}","gists_url":"https://api.github.com/users/nghiant2710/gists{/gist_id}","starred_url":"https://api.github.com/users/nghiant2710/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nghiant2710/subscriptions","organizations_url":"https://api.github.com/users/nghiant2710/orgs","repos_url":"https://api.github.com/users/nghiant2710/repos","events_url":"https://api.github.com/users/nghiant2710/events{/privacy}","received_events_url":"https://api.github.com/users/nghiant2710/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nghiant2710/resin-python-wrapper","description":"A python wrapper for resin.io [work in progress]","fork":true,"url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper","forks_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/forks","keys_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/teams","hooks_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/hooks","issue_events_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/events","assignees_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/tags","blobs_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/languages","stargazers_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/stargazers","contributors_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/contributors","subscribers_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/subscribers","subscription_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/subscription","commits_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/merges","archive_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/downloads","issues_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/nghiant2710/resin-python-wrapper/releases{/id}","created_at":"2015-07-30T09:38:12Z","updated_at":"2015-07-30T09:38:12Z","pushed_at":"2015-08-20T05:35:23Z","git_url":"git://github.com/nghiant2710/resin-python-wrapper.git","ssh_url":"git@github.com:nghiant2710/resin-python-wrapper.git","clone_url":"https://github.com/nghiant2710/resin-python-wrapper.git","svn_url":"https://github.com/nghiant2710/resin-python-wrapper","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"resin-io-projects:master","ref":"master","sha":"c2631df426ab966e31f2f012f4340af0539074e2","user":{"login":"resin-io-projects","id":11962351,"avatar_url":"https://avatars.githubusercontent.com/u/11962351?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-projects","html_url":"https://github.com/resin-io-projects","followers_url":"https://api.github.com/users/resin-io-projects/followers","following_url":"https://api.github.com/users/resin-io-projects/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-projects/subscriptions","organizations_url":"https://api.github.com/users/resin-io-projects/orgs","repos_url":"https://api.github.com/users/resin-io-projects/repos","events_url":"https://api.github.com/users/resin-io-projects/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":38891739,"name":"resin-python-wrapper","full_name":"resin-io-projects/resin-python-wrapper","owner":{"login":"resin-io-projects","id":11962351,"avatar_url":"https://avatars.githubusercontent.com/u/11962351?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io-projects","html_url":"https://github.com/resin-io-projects","followers_url":"https://api.github.com/users/resin-io-projects/followers","following_url":"https://api.github.com/users/resin-io-projects/following{/other_user}","gists_url":"https://api.github.com/users/resin-io-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io-projects/subscriptions","organizations_url":"https://api.github.com/users/resin-io-projects/orgs","repos_url":"https://api.github.com/users/resin-io-projects/repos","events_url":"https://api.github.com/users/resin-io-projects/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io-projects/resin-python-wrapper","description":"A python wrapper for resin.io [work in progress]","fork":false,"url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper","forks_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/forks","keys_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/teams","hooks_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/hooks","issue_events_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/events","assignees_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/tags","blobs_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/languages","stargazers_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/stargazers","contributors_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/contributors","subscribers_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/subscribers","subscription_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/subscription","commits_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/merges","archive_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/downloads","issues_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/releases{/id}","created_at":"2015-07-10T16:54:48Z","updated_at":"2015-07-20T09:36:20Z","pushed_at":"2015-08-20T05:35:23Z","git_url":"git://github.com/resin-io-projects/resin-python-wrapper.git","ssh_url":"git@github.com:resin-io-projects/resin-python-wrapper.git","clone_url":"https://github.com/resin-io-projects/resin-python-wrapper.git","svn_url":"https://github.com/resin-io-projects/resin-python-wrapper","homepage":null,"size":201,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6"},"html":{"href":"https://github.com/resin-io-projects/resin-python-wrapper/pull/6"},"issue":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/6"},"comments":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io-projects/resin-python-wrapper/statuses/e8d991a5b51949cd82a7d285273010086ccd9e1f"}}}}