{"action":"created","comment":{"url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/comments/85724171","pull_request_review_id":6422004,"id":85724171,"diff_hunk":"@@ -231,12 +231,28 @@ def store(self):\n         \"\"\"\n         self._info_cache = rest_request('PUT', self._api_storage_uri)\n \n-    def copy(self, effects=None, target=None):\n+    def copy(self, effects=None, target=None, make_public=None, store=None, pattern=None):\n         \"\"\"Creates File copy\n \n-        If ``target`` is ``None``, copy file to Uploadcare storage otherwise\n-        copy to target associated with project.\n-        Add ``effects`` to ``self.default_effects`` if any.\n+      - If ``target`` is ``None``, copy file to Uploadcare storage otherwise\n+        copy to target associated with project;\n+      -  Add ``effects`` to ``self.default_effects`` if any;\n+      -  To forbid a public from accessing your files on the target storage set\n+        ``make_public`` option to be ``false``,\n+        relevant when ``target`` has a value set.\n+      - Specify  ``pattern`` option to set the file name\n+\n+      - Following example copies a file to ``samplefs`` S3 storage with an owner only access,\n+      with file name consisting of uuid,original filename and file extension placed\n+      in the root of the storage:\n+            - >>>file.copy(target='samplefs',\n+                            make_public='false',","path":"pyuploadcare/api_resources.py","position":23,"original_position":23,"commit_id":"24c48c81b36334ea2237b9de0d79fb819cd3185f","original_commit_id":"24c48c81b36334ea2237b9de0d79fb819cd3185f","user":{"login":"dmitry-mukhin","id":925309,"avatar_url":"https://avatars.githubusercontent.com/u/925309?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry-mukhin","html_url":"https://github.com/dmitry-mukhin","followers_url":"https://api.github.com/users/dmitry-mukhin/followers","following_url":"https://api.github.com/users/dmitry-mukhin/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-mukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-mukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-mukhin/subscriptions","organizations_url":"https://api.github.com/users/dmitry-mukhin/orgs","repos_url":"https://api.github.com/users/dmitry-mukhin/repos","events_url":"https://api.github.com/users/dmitry-mukhin/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-mukhin/received_events","type":"User","site_admin":false},"body":"`make_public=False`","created_at":"2016-10-31T11:50:15Z","updated_at":"2016-10-31T11:51:40Z","html_url":"https://github.com/uploadcare/pyuploadcare/pull/116#discussion_r85724171","pull_request_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/comments/85724171"},"html":{"href":"https://github.com/uploadcare/pyuploadcare/pull/116#discussion_r85724171"},"pull_request":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116","id":90661626,"html_url":"https://github.com/uploadcare/pyuploadcare/pull/116","diff_url":"https://github.com/uploadcare/pyuploadcare/pull/116.diff","patch_url":"https://github.com/uploadcare/pyuploadcare/pull/116.patch","issue_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/116","number":116,"state":"open","locked":false,"title":"Added new params to file copy","user":{"login":"khazamov","id":2559710,"avatar_url":"https://avatars.githubusercontent.com/u/2559710?v=3","gravatar_id":"","url":"https://api.github.com/users/khazamov","html_url":"https://github.com/khazamov","followers_url":"https://api.github.com/users/khazamov/followers","following_url":"https://api.github.com/users/khazamov/following{/other_user}","gists_url":"https://api.github.com/users/khazamov/gists{/gist_id}","starred_url":"https://api.github.com/users/khazamov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khazamov/subscriptions","organizations_url":"https://api.github.com/users/khazamov/orgs","repos_url":"https://api.github.com/users/khazamov/repos","events_url":"https://api.github.com/users/khazamov/events{/privacy}","received_events_url":"https://api.github.com/users/khazamov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-24T17:57:49Z","updated_at":"2016-10-31T11:51:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b784c1a5d34ba5908c414c1cf975fd7313a7e31","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116/commits","review_comments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116/comments","review_comment_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/116/comments","statuses_url":"https://api.github.com/repos/uploadcare/pyuploadcare/statuses/24c48c81b36334ea2237b9de0d79fb819cd3185f","head":{"label":"uploadcare:copy_params","ref":"copy_params","sha":"24c48c81b36334ea2237b9de0d79fb819cd3185f","user":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"repo":{"id":2203143,"name":"pyuploadcare","full_name":"uploadcare/pyuploadcare","owner":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uploadcare/pyuploadcare","description":"Python library for uploadcare","fork":false,"url":"https://api.github.com/repos/uploadcare/pyuploadcare","forks_url":"https://api.github.com/repos/uploadcare/pyuploadcare/forks","keys_url":"https://api.github.com/repos/uploadcare/pyuploadcare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uploadcare/pyuploadcare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uploadcare/pyuploadcare/teams","hooks_url":"https://api.github.com/repos/uploadcare/pyuploadcare/hooks","issue_events_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/events{/number}","events_url":"https://api.github.com/repos/uploadcare/pyuploadcare/events","assignees_url":"https://api.github.com/repos/uploadcare/pyuploadcare/assignees{/user}","branches_url":"https://api.github.com/repos/uploadcare/pyuploadcare/branches{/branch}","tags_url":"https://api.github.com/repos/uploadcare/pyuploadcare/tags","blobs_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/refs{/sha}","trees_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uploadcare/pyuploadcare/statuses/{sha}","languages_url":"https://api.github.com/repos/uploadcare/pyuploadcare/languages","stargazers_url":"https://api.github.com/repos/uploadcare/pyuploadcare/stargazers","contributors_url":"https://api.github.com/repos/uploadcare/pyuploadcare/contributors","subscribers_url":"https://api.github.com/repos/uploadcare/pyuploadcare/subscribers","subscription_url":"https://api.github.com/repos/uploadcare/pyuploadcare/subscription","commits_url":"https://api.github.com/repos/uploadcare/pyuploadcare/commits{/sha}","git_commits_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/commits{/sha}","comments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/comments{/number}","issue_comment_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/comments{/number}","contents_url":"https://api.github.com/repos/uploadcare/pyuploadcare/contents/{+path}","compare_url":"https://api.github.com/repos/uploadcare/pyuploadcare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uploadcare/pyuploadcare/merges","archive_url":"https://api.github.com/repos/uploadcare/pyuploadcare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uploadcare/pyuploadcare/downloads","issues_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues{/number}","pulls_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls{/number}","milestones_url":"https://api.github.com/repos/uploadcare/pyuploadcare/milestones{/number}","notifications_url":"https://api.github.com/repos/uploadcare/pyuploadcare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uploadcare/pyuploadcare/labels{/name}","releases_url":"https://api.github.com/repos/uploadcare/pyuploadcare/releases{/id}","deployments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/deployments","created_at":"2011-08-13T21:16:31Z","updated_at":"2016-10-27T22:17:07Z","pushed_at":"2016-10-28T23:04:32Z","git_url":"git://github.com/uploadcare/pyuploadcare.git","ssh_url":"git@github.com:uploadcare/pyuploadcare.git","clone_url":"https://github.com/uploadcare/pyuploadcare.git","svn_url":"https://github.com/uploadcare/pyuploadcare","homepage":"https://uploadcare.com/","size":1749,"stargazers_count":62,"watchers_count":62,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":6,"forks":18,"open_issues":6,"watchers":62,"default_branch":"master"}},"base":{"label":"uploadcare:master","ref":"master","sha":"b3a5520b1d41299f901d8a1e08b2dafff00b8732","user":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"repo":{"id":2203143,"name":"pyuploadcare","full_name":"uploadcare/pyuploadcare","owner":{"login":"uploadcare","id":978311,"avatar_url":"https://avatars.githubusercontent.com/u/978311?v=3","gravatar_id":"","url":"https://api.github.com/users/uploadcare","html_url":"https://github.com/uploadcare","followers_url":"https://api.github.com/users/uploadcare/followers","following_url":"https://api.github.com/users/uploadcare/following{/other_user}","gists_url":"https://api.github.com/users/uploadcare/gists{/gist_id}","starred_url":"https://api.github.com/users/uploadcare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uploadcare/subscriptions","organizations_url":"https://api.github.com/users/uploadcare/orgs","repos_url":"https://api.github.com/users/uploadcare/repos","events_url":"https://api.github.com/users/uploadcare/events{/privacy}","received_events_url":"https://api.github.com/users/uploadcare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uploadcare/pyuploadcare","description":"Python library for uploadcare","fork":false,"url":"https://api.github.com/repos/uploadcare/pyuploadcare","forks_url":"https://api.github.com/repos/uploadcare/pyuploadcare/forks","keys_url":"https://api.github.com/repos/uploadcare/pyuploadcare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uploadcare/pyuploadcare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uploadcare/pyuploadcare/teams","hooks_url":"https://api.github.com/repos/uploadcare/pyuploadcare/hooks","issue_events_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/events{/number}","events_url":"https://api.github.com/repos/uploadcare/pyuploadcare/events","assignees_url":"https://api.github.com/repos/uploadcare/pyuploadcare/assignees{/user}","branches_url":"https://api.github.com/repos/uploadcare/pyuploadcare/branches{/branch}","tags_url":"https://api.github.com/repos/uploadcare/pyuploadcare/tags","blobs_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/refs{/sha}","trees_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uploadcare/pyuploadcare/statuses/{sha}","languages_url":"https://api.github.com/repos/uploadcare/pyuploadcare/languages","stargazers_url":"https://api.github.com/repos/uploadcare/pyuploadcare/stargazers","contributors_url":"https://api.github.com/repos/uploadcare/pyuploadcare/contributors","subscribers_url":"https://api.github.com/repos/uploadcare/pyuploadcare/subscribers","subscription_url":"https://api.github.com/repos/uploadcare/pyuploadcare/subscription","commits_url":"https://api.github.com/repos/uploadcare/pyuploadcare/commits{/sha}","git_commits_url":"https://api.github.com/repos/uploadcare/pyuploadcare/git/commits{/sha}","comments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/comments{/number}","issue_comment_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/comments{/number}","contents_url":"https://api.github.com/repos/uploadcare/pyuploadcare/contents/{+path}","compare_url":"https://api.github.com/repos/uploadcare/pyuploadcare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uploadcare/pyuploadcare/merges","archive_url":"https://api.github.com/repos/uploadcare/pyuploadcare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uploadcare/pyuploadcare/downloads","issues_url":"https://api.github.com/repos/uploadcare/pyuploadcare/issues{/number}","pulls_url":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls{/number}","milestones_url":"https://api.github.com/repos/uploadcare/pyuploadcare/milestones{/number}","notifications_url":"https://api.github.com/repos/uploadcare/pyuploadcare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uploadcare/pyuploadcare/labels{/name}","releases_url":"https://api.github.com/repos/uploadcare/pyuploadcare/releases{/id}","deployments_url":"https://api.github.com/repos/uploadcare/pyuploadcare/deployments","created_at":"2011-08-13T21:16:31Z","updated_at":"2016-10-27T22:17:07Z","pushed_at":"2016-10-28T23:04:32Z","git_url":"git://github.com/uploadcare/pyuploadcare.git","ssh_url":"git@github.com:uploadcare/pyuploadcare.git","clone_url":"https://github.com/uploadcare/pyuploadcare.git","svn_url":"https://github.com/uploadcare/pyuploadcare","homepage":"https://uploadcare.com/","size":1749,"stargazers_count":62,"watchers_count":62,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":6,"forks":18,"open_issues":6,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116"},"html":{"href":"https://github.com/uploadcare/pyuploadcare/pull/116"},"issue":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/116"},"comments":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/uploadcare/pyuploadcare/statuses/24c48c81b36334ea2237b9de0d79fb819cd3185f"}}}}
{"actor":{"display_login":"dmitry-mukhin"}}