{"action":"closed","number":24845,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/24845","id":121584877,"html_url":"https://github.com/ansible/ansible/pull/24845","diff_url":"https://github.com/ansible/ansible/pull/24845.diff","patch_url":"https://github.com/ansible/ansible/pull/24845.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/24845","number":24845,"state":"closed","locked":false,"title":"New module: [google] adding a GCE labels module","user":{"login":"erjohnso","id":2154049,"avatar_url":"https://avatars2.githubusercontent.com/u/2154049?v=4","gravatar_id":"","url":"https://api.github.com/users/erjohnso","html_url":"https://github.com/erjohnso","followers_url":"https://api.github.com/users/erjohnso/followers","following_url":"https://api.github.com/users/erjohnso/following{/other_user}","gists_url":"https://api.github.com/users/erjohnso/gists{/gist_id}","starred_url":"https://api.github.com/users/erjohnso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjohnso/subscriptions","organizations_url":"https://api.github.com/users/erjohnso/orgs","repos_url":"https://api.github.com/users/erjohnso/repos","events_url":"https://api.github.com/users/erjohnso/events{/privacy}","received_events_url":"https://api.github.com/users/erjohnso/received_events","type":"User","site_admin":false},"body":"##### SUMMARY\r\nNew Google Cloud Platform module. This module provides support for [GCE Labels](https://cloud.google.com/compute/docs/labeling-resources). As of today, this feature is only available in BETA, but is expected to become generally available in the coming weeks (and make it into the 'v1' API).\r\n\r\n\r\n##### ISSUE TYPE\r\n - New Module Pull Request\r\n\r\n##### COMPONENT NAME\r\n`gce_labels` module\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.4.0 (gce_labels 73a585c541) last updated 2017/05/19 21:13:01 (GMT +000)\r\n  config file = /home/erjohnso/.ansible.cfg\r\n  configured module search path = [u'/home/erjohnso/ansible/lib/ansible', u'/home/erjohnso/ansible/lib/ansible/utils']\r\n  ansible python module location = /home/erjohnso/ansible/lib/ansible\r\n  executable location = /home/erjohnso/ansible/bin/ansible\r\n  python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]\r\n\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n```\r\nerjohnso@ansible-dev$ ansible localhost -m gce_labels -a \"labels={'foo':'bar','baz':'ugh'} resource_name=ansible-dev resource_location=us-central1-f resource_type=disks project_id=graphite-demos credentials_file=/home/erjohnso/pkey.json\" \r\n [WARNING]: Host file not found: /home/erjohnso/ansible_hosts\r\n\r\n [WARNING]: provided hosts list is empty, only localhost is available\r\n\r\nlocalhost | SUCCESS => {\r\n    \"changed\": true, \r\n    \"label_fingerprint\": \"42WmSpB8rSM=\", \r\n    \"labels\": {\r\n        \"baz\": \"ugh\", \r\n        \"foo\": \"bar\"\r\n    }, \r\n    \"project_id\": \"graphite-demos\", \r\n    \"resource_location\": \"us-central1-f\", \r\n    \"resource_name\": \"ansible-dev\", \r\n    \"resource_type\": \"disks\", \r\n    \"resource_url\": null, \r\n    \"state\": \"present\"\r\n}\r\n\r\n```\r\n\r\n/cc @supertom if you don't mind an initial review","created_at":"2017-05-19T21:20:14Z","updated_at":"2017-07-25T13:37:45Z","closed_at":"2017-07-25T13:37:45Z","merged_at":null,"merge_commit_sha":"3a6072c876211fc27ae535d6cdce6b83761b9b8a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/24845/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/24845/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/24845/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/816836385b79df099da2860fa61cec349a171891","head":{"label":"erjohnso:gce_labels","ref":"gce_labels","sha":"816836385b79df099da2860fa61cec349a171891","user":{"login":"erjohnso","id":2154049,"avatar_url":"https://avatars2.githubusercontent.com/u/2154049?v=4","gravatar_id":"","url":"https://api.github.com/users/erjohnso","html_url":"https://github.com/erjohnso","followers_url":"https://api.github.com/users/erjohnso/followers","following_url":"https://api.github.com/users/erjohnso/following{/other_user}","gists_url":"https://api.github.com/users/erjohnso/gists{/gist_id}","starred_url":"https://api.github.com/users/erjohnso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjohnso/subscriptions","organizations_url":"https://api.github.com/users/erjohnso/orgs","repos_url":"https://api.github.com/users/erjohnso/repos","events_url":"https://api.github.com/users/erjohnso/events{/privacy}","received_events_url":"https://api.github.com/users/erjohnso/received_events","type":"User","site_admin":false},"repo":{"id":91336207,"name":"ansible","full_name":"erjohnso/ansible","owner":{"login":"erjohnso","id":2154049,"avatar_url":"https://avatars2.githubusercontent.com/u/2154049?v=4","gravatar_id":"","url":"https://api.github.com/users/erjohnso","html_url":"https://github.com/erjohnso","followers_url":"https://api.github.com/users/erjohnso/followers","following_url":"https://api.github.com/users/erjohnso/following{/other_user}","gists_url":"https://api.github.com/users/erjohnso/gists{/gist_id}","starred_url":"https://api.github.com/users/erjohnso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjohnso/subscriptions","organizations_url":"https://api.github.com/users/erjohnso/orgs","repos_url":"https://api.github.com/users/erjohnso/repos","events_url":"https://api.github.com/users/erjohnso/events{/privacy}","received_events_url":"https://api.github.com/users/erjohnso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erjohnso/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/erjohnso/ansible","forks_url":"https://api.github.com/repos/erjohnso/ansible/forks","keys_url":"https://api.github.com/repos/erjohnso/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erjohnso/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erjohnso/ansible/teams","hooks_url":"https://api.github.com/repos/erjohnso/ansible/hooks","issue_events_url":"https://api.github.com/repos/erjohnso/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/erjohnso/ansible/events","assignees_url":"https://api.github.com/repos/erjohnso/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/erjohnso/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/erjohnso/ansible/tags","blobs_url":"https://api.github.com/repos/erjohnso/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erjohnso/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erjohnso/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/erjohnso/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erjohnso/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/erjohnso/ansible/languages","stargazers_url":"https://api.github.com/repos/erjohnso/ansible/stargazers","contributors_url":"https://api.github.com/repos/erjohnso/ansible/contributors","subscribers_url":"https://api.github.com/repos/erjohnso/ansible/subscribers","subscription_url":"https://api.github.com/repos/erjohnso/ansible/subscription","commits_url":"https://api.github.com/repos/erjohnso/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/erjohnso/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/erjohnso/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/erjohnso/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/erjohnso/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/erjohnso/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erjohnso/ansible/merges","archive_url":"https://api.github.com/repos/erjohnso/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erjohnso/ansible/downloads","issues_url":"https://api.github.com/repos/erjohnso/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/erjohnso/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/erjohnso/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/erjohnso/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erjohnso/ansible/labels{/name}","releases_url":"https://api.github.com/repos/erjohnso/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/erjohnso/ansible/deployments","created_at":"2017-05-15T12:38:46Z","updated_at":"2017-05-15T12:39:06Z","pushed_at":"2017-07-17T20:05:57Z","git_url":"git://github.com/erjohnso/ansible.git","ssh_url":"git@github.com:erjohnso/ansible.git","clone_url":"https://github.com/erjohnso/ansible.git","svn_url":"https://github.com/erjohnso/ansible","homepage":"http://ansible.com/","size":81399,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"292f109ad6fded33dd447493a58768732c2f03e7","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2017-07-25T12:23:34Z","pushed_at":"2017-07-25T13:36:43Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":83657,"stargazers_count":24403,"watchers_count":24403,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8401,"mirror_url":null,"open_issues_count":3585,"forks":8401,"open_issues":3585,"watchers":24403,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/24845"},"html":{"href":"https://github.com/ansible/ansible/pull/24845"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/24845"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/24845/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/24845/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/24845/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/816836385b79df099da2860fa61cec349a171891"}},"merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":11,"maintainer_can_modify":false,"commits":2,"additions":414,"deletions":0,"changed_files":7}}
{"actor":{"display_login":"ryansb"}}