{"action":"opened","issue":{"url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/212","repository_url":"https://api.github.com/repos/gimite/google-drive-ruby","labels_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/212/comments","events_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/212/events","html_url":"https://github.com/gimite/google-drive-ruby/issues/212","id":161851699,"number":212,"title":"How to change a file role type / permission?","user":{"login":"coderaven","id":631312,"avatar_url":"https://avatars.githubusercontent.com/u/631312?v=3","gravatar_id":"","url":"https://api.github.com/users/coderaven","html_url":"https://github.com/coderaven","followers_url":"https://api.github.com/users/coderaven/followers","following_url":"https://api.github.com/users/coderaven/following{/other_user}","gists_url":"https://api.github.com/users/coderaven/gists{/gist_id}","starred_url":"https://api.github.com/users/coderaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderaven/subscriptions","organizations_url":"https://api.github.com/users/coderaven/orgs","repos_url":"https://api.github.com/users/coderaven/repos","events_url":"https://api.github.com/users/coderaven/events{/privacy}","received_events_url":"https://api.github.com/users/coderaven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T06:49:05Z","updated_at":"2016-06-23T06:49:05Z","closed_at":null,"body":"I was trying to change file's role type / permission so I could make the file available to be accessed publicly:\r\n```\r\n\r\nrequire \"google_drive\"\r\n\r\nsession = GoogleDrive.saved_session(\"config.json\")\r\nfile = session.file_by_title(\"csv/default.csv\")\r\n\r\nif file\r\n\tfile.api_file.permissions[0].type = 'anyone'\r\nend\r\n\r\n```\r\nBut of course, this won't work since the api_file is set to be read_only. Is there currently a way  to do this using the gem?"}}
{"actor":{"display_login":"coderaven"}}