{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/10","repository_url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl","labels_url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/10/comments","events_url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/10/events","html_url":"https://github.com/JuliaCloud/AWSSDK.jl/issues/10","id":293288634,"number":10,"title":"can not set metadata for S3 operations","user":{"login":"jingpengw","id":7651573,"avatar_url":"https://avatars1.githubusercontent.com/u/7651573?v=4","gravatar_id":"","url":"https://api.github.com/users/jingpengw","html_url":"https://github.com/jingpengw","followers_url":"https://api.github.com/users/jingpengw/followers","following_url":"https://api.github.com/users/jingpengw/following{/other_user}","gists_url":"https://api.github.com/users/jingpengw/gists{/gist_id}","starred_url":"https://api.github.com/users/jingpengw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingpengw/subscriptions","organizations_url":"https://api.github.com/users/jingpengw/orgs","repos_url":"https://api.github.com/users/jingpengw/repos","events_url":"https://api.github.com/users/jingpengw/events{/privacy}","received_events_url":"https://api.github.com/users/jingpengw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-31T19:49:38Z","updated_at":"2018-02-14T08:54:31Z","closed_at":null,"author_association":"NONE","body":"according to the example in documentation, this should be implemented as follows:\r\n\r\n```julia\r\nusing AWSSDK.S3\r\narguments = [\"Bucket\"=>\"mybucket\", \"Key\"=>\"mykey\", \"Body\"=>rand(UInt8, 12), \"Metadata\" => [\"ContentEncoding\"=>\"gzip\"]]\r\nS3.put_object(arguments)\r\n```\r\nthis implementation do not work. I have tried some variations, did not find the correct way to do it. \r\nusing keyword style also do not work.\r\n\r\n```julia\r\nS3.put_object(Bucket=\"mybucket\", Key=\"mykey\", Body=rand(UInt8,12), Content-Encoding=\"gzip\")\r\n```\r\nthe `-` in `Content-Encoding` was parsed as a julia operation! Maybe we should change the keyword name removing the `-`? @samoconnor \r\n"},"comment":{"url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/comments/365536780","html_url":"https://github.com/JuliaCloud/AWSSDK.jl/issues/10#issuecomment-365536780","issue_url":"https://api.github.com/repos/JuliaCloud/AWSSDK.jl/issues/10","id":365536780,"user":{"login":"samoconnor","id":8266283,"avatar_url":"https://avatars2.githubusercontent.com/u/8266283?v=4","gravatar_id":"","url":"https://api.github.com/users/samoconnor","html_url":"https://github.com/samoconnor","followers_url":"https://api.github.com/users/samoconnor/followers","following_url":"https://api.github.com/users/samoconnor/following{/other_user}","gists_url":"https://api.github.com/users/samoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/samoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoconnor/subscriptions","organizations_url":"https://api.github.com/users/samoconnor/orgs","repos_url":"https://api.github.com/users/samoconnor/repos","events_url":"https://api.github.com/users/samoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/samoconnor/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T08:54:31Z","updated_at":"2018-02-14T08:54:31Z","author_association":"CONTRIBUTOR","body":"This change in the generator marks annotates arguments that must be passes as headers: https://github.com/JuliaCloud/AWSCore.jl/commit/6ccbadcd6bc6b2ce84c2ca06c387d3489f324876\r\n\r\ne.g. https://github.com/JuliaCloud/AWSSDK.jl/commit/aa2c1d7c62f3ce5cbe8f8e6dcb6cb5a5ac707a55#diff-a83476a5c66cc7c6bab360aee646dbb9R210\r\n\r\nThis needs to me taken further to generate documentation about the `headers=` option.\r\n\r\nThe issue also remains that the generated example does not match the required argument names:\r\n\r\n```\r\n[\r\n    \"Body\" => \"filetoupload\",\r\n    \"Bucket\" => \"examplebucket\",\r\n    \"Key\" => \"exampleobject\",\r\n    \"Metadata\" => [\r\n        \"metadata1\" => \"value1\",\r\n        \"metadata2\" => \"value2\"\r\n    ]\r\n]\r\n```"}}
{"actor":{"display_login":"samoconnor"}}