{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/344","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/344/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/344/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/344","id":109145966,"number":344,"title":"Create New Project","user":{"login":"blowmage","id":730,"avatar_url":"https://avatars.githubusercontent.com/u/730?v=3","gravatar_id":"","url":"https://api.github.com/users/blowmage","html_url":"https://github.com/blowmage","followers_url":"https://api.github.com/users/blowmage/followers","following_url":"https://api.github.com/users/blowmage/following{/other_user}","gists_url":"https://api.github.com/users/blowmage/gists{/gist_id}","starred_url":"https://api.github.com/users/blowmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowmage/subscriptions","organizations_url":"https://api.github.com/users/blowmage/orgs","repos_url":"https://api.github.com/users/blowmage/repos","events_url":"https://api.github.com/users/blowmage/events{/privacy}","received_events_url":"https://api.github.com/users/blowmage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/labels/resource%20manager","name":"resource manager","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"blowmage","id":730,"avatar_url":"https://avatars.githubusercontent.com/u/730?v=3","gravatar_id":"","url":"https://api.github.com/users/blowmage","html_url":"https://github.com/blowmage","followers_url":"https://api.github.com/users/blowmage/followers","following_url":"https://api.github.com/users/blowmage/following{/other_user}","gists_url":"https://api.github.com/users/blowmage/gists{/gist_id}","starred_url":"https://api.github.com/users/blowmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowmage/subscriptions","organizations_url":"https://api.github.com/users/blowmage/orgs","repos_url":"https://api.github.com/users/blowmage/repos","events_url":"https://api.github.com/users/blowmage/events{/privacy}","received_events_url":"https://api.github.com/users/blowmage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/milestones/16","html_url":"https://github.com/GoogleCloudPlatform/gcloud-ruby/milestones/0.5.0%20-%20Resource%20Manager","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/milestones/16/labels","id":1298075,"number":16,"title":"0.5.0 - Resource Manager","description":"","creator":{"login":"blowmage","id":730,"avatar_url":"https://avatars.githubusercontent.com/u/730?v=3","gravatar_id":"","url":"https://api.github.com/users/blowmage","html_url":"https://github.com/blowmage","followers_url":"https://api.github.com/users/blowmage/followers","following_url":"https://api.github.com/users/blowmage/following{/other_user}","gists_url":"https://api.github.com/users/blowmage/gists{/gist_id}","starred_url":"https://api.github.com/users/blowmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blowmage/subscriptions","organizations_url":"https://api.github.com/users/blowmage/orgs","repos_url":"https://api.github.com/users/blowmage/repos","events_url":"https://api.github.com/users/blowmage/events{/privacy}","received_events_url":"https://api.github.com/users/blowmage/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2015-09-09T17:09:47Z","updated_at":"2015-10-01T22:55:16Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-30T17:57:55Z","updated_at":"2015-10-02T16:46:31Z","closed_at":null,"body":"```ruby\r\nrequire \"gcloud\"\r\n\r\nrm = Gcloud.new.resource_manager\r\nproject = rm.create_project \"my-new-project\", \"My New Project\", env: :production\r\n```\r\n\r\nThe signature for the method is `Manager#create_project(project_id, name, labels)`"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/comments/145083568","html_url":"https://github.com/GoogleCloudPlatform/gcloud-ruby/issues/344#issuecomment-145083568","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-ruby/issues/344","id":145083568,"user":{"login":"quartzmo","id":205445,"avatar_url":"https://avatars.githubusercontent.com/u/205445?v=3","gravatar_id":"","url":"https://api.github.com/users/quartzmo","html_url":"https://github.com/quartzmo","followers_url":"https://api.github.com/users/quartzmo/followers","following_url":"https://api.github.com/users/quartzmo/following{/other_user}","gists_url":"https://api.github.com/users/quartzmo/gists{/gist_id}","starred_url":"https://api.github.com/users/quartzmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quartzmo/subscriptions","organizations_url":"https://api.github.com/users/quartzmo/orgs","repos_url":"https://api.github.com/users/quartzmo/repos","events_url":"https://api.github.com/users/quartzmo/events{/privacy}","received_events_url":"https://api.github.com/users/quartzmo/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:46:31Z","updated_at":"2015-10-02T16:46:31Z","body":"It's just my opinion, but I think that for the \"least surprise\" we should stick to the convention so common in this library: a final `options` hash parameter. \r\n\r\n```ruby\r\nrequire \"gcloud\"\r\n\r\nrm = Gcloud.new.resource_manager\r\nlabels = { \"env\" => \"production\" } # or { env: :production }\r\nproject = rm.create_project \"my-new-project\", \"My New Project\", labels: labels\r\n```\r\n\r\nI do realize that the only option right now is `labels`. In isolation this may seem wrong, but in the context of the whole library, the benefits from consistency should be worth the tradeoff."}}