{"action":"opened","number":7674,"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/7674","id":212997487,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyOTk3NDg3","html_url":"https://github.com/Katello/katello/pull/7674","diff_url":"https://github.com/Katello/katello/pull/7674.diff","patch_url":"https://github.com/Katello/katello/pull/7674.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/7674","number":7674,"state":"open","locked":false,"title":"Fixes #24813 - extend smart_proxy APi to return download_policy","user":{"login":"sean797","id":13135483,"node_id":"MDQ6VXNlcjEzMTM1NDgz","avatar_url":"https://avatars3.githubusercontent.com/u/13135483?v=4","gravatar_id":"","url":"https://api.github.com/users/sean797","html_url":"https://github.com/sean797","followers_url":"https://api.github.com/users/sean797/followers","following_url":"https://api.github.com/users/sean797/following{/other_user}","gists_url":"https://api.github.com/users/sean797/gists{/gist_id}","starred_url":"https://api.github.com/users/sean797/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean797/subscriptions","organizations_url":"https://api.github.com/users/sean797/orgs","repos_url":"https://api.github.com/users/sean797/repos","events_url":"https://api.github.com/users/sean797/events{/privacy}","received_events_url":"https://api.github.com/users/sean797/received_events","type":"User","site_admin":false},"body":"This works with both `/api/v2/smart_proxies` and `api/v2/smart_proxies/:id`\r\n\r\n```\r\n[sokeeffe@sean foreman-ansible-modules] (tasks)$ curl https://admin:changeme@centos7-devel.sean.example.com/api/v2/smart_proxies -qk | jq\r\n{ \r\n  \"total\": 1,\r\n  \"subtotal\": 1,\r\n  \"page\": 1,\r\n  \"per_page\": 20,\r\n  \"search\": null,\r\n  \"sort\": { \r\n    \"by\": null,\r\n    \"order\": null\r\n  },\r\n  \"results\": [\r\n    {\r\n      \"created_at\": \"2018-08-15 09:40:06 UTC\",\r\n      \"updated_at\": \"2018-08-15 09:40:07 UTC\",\r\n      \"name\": \"centos7-devel.sean.example.com\",\r\n      \"id\": 1,\r\n      \"url\": \"https://centos7-devel.sean.example.com:9090\",\r\n      \"download_policy\": \"on_demand\",\r\n      \"features\": [\r\n        {\r\n          \"name\": \"Templates\",\r\n          \"id\": 1\r\n        },\r\n        {\r\n          \"name\": \"Pulp\",\r\n          \"id\": 2\r\n        },\r\n        {\r\n          \"name\": \"TFTP\",\r\n          \"id\": 4\r\n        },\r\n        {\r\n          \"name\": \"Puppet\",\r\n          \"id\": 7\r\n        },\r\n        {\r\n          \"name\": \"Puppet CA\",\r\n          \"id\": 8\r\n        },\r\n        {\r\n          \"name\": \"Logs\",\r\n          \"id\": 12 \r\n        },\r\n        {\r\n          \"name\": \"DNS\",\r\n          \"id\": 5\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n} \r\n[sokeeffe@sean foreman-ansible-modules] (tasks)$ curl https://admin:changeme@centos7-devel.sean.example.com/api/v2/smart_proxies/1 -k | jq\r\n{\r\n  \"created_at\": \"2018-08-15 09:40:06 UTC\",\r\n  \"updated_at\": \"2018-08-15 09:40:07 UTC\",\r\n  \"name\": \"centos7-devel.sean.example.com\",\r\n  \"id\": 1,\r\n  \"url\": \"https://centos7-devel.sean.example.com:9090\",\r\n  \"download_policy\": \"on_demand\",\r\n  \"features\": [\r\n    {\r\n      \"name\": \"Templates\",\r\n      \"id\": 1\r\n    },\r\n    {\r\n      \"name\": \"Pulp\",\r\n      \"id\": 2\r\n    },\r\n    {\r\n      \"name\": \"TFTP\",\r\n      \"id\": 4\r\n    },\r\n    {\r\n      \"name\": \"DNS\",\r\n      \"id\": 5\r\n    },\r\n    {\r\n      \"name\": \"Puppet\",\r\n      \"id\": 7\r\n    },\r\n    {\r\n      \"name\": \"Puppet CA\",\r\n      \"id\": 8\r\n    },\r\n    {\r\n      \"name\": \"Logs\",\r\n      \"id\": 12\r\n    }\r\n  ],\r\n  \"locations\": [\r\n    {\r\n      \"id\": 2,\r\n      \"name\": \"Default Location\",\r\n      \"title\": \"Default Location\",\r\n      \"description\": null\r\n    }\r\n  ],\r\n  \"organizations\": [\r\n    {\r\n      \"id\": 1,\r\n      \"name\": \"Default Organization\",\r\n      \"title\": \"Default Organization\",\r\n      \"description\": null\r\n    }\r\n  ]\r\n}\r\n","created_at":"2018-09-04T14:29:53Z","updated_at":"2018-09-04T14:29:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/7674/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/7674/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/7674/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/fdfc6bb29cfc9c395b4f35b93e12da5cb980729a","head":{"label":"sean797:download_policy_api","ref":"download_policy_api","sha":"fdfc6bb29cfc9c395b4f35b93e12da5cb980729a","user":{"login":"sean797","id":13135483,"node_id":"MDQ6VXNlcjEzMTM1NDgz","avatar_url":"https://avatars3.githubusercontent.com/u/13135483?v=4","gravatar_id":"","url":"https://api.github.com/users/sean797","html_url":"https://github.com/sean797","followers_url":"https://api.github.com/users/sean797/followers","following_url":"https://api.github.com/users/sean797/following{/other_user}","gists_url":"https://api.github.com/users/sean797/gists{/gist_id}","starred_url":"https://api.github.com/users/sean797/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean797/subscriptions","organizations_url":"https://api.github.com/users/sean797/orgs","repos_url":"https://api.github.com/users/sean797/repos","events_url":"https://api.github.com/users/sean797/events{/privacy}","received_events_url":"https://api.github.com/users/sean797/received_events","type":"User","site_admin":false},"repo":{"id":70579170,"node_id":"MDEwOlJlcG9zaXRvcnk3MDU3OTE3MA==","name":"katello","full_name":"sean797/katello","owner":{"login":"sean797","id":13135483,"node_id":"MDQ6VXNlcjEzMTM1NDgz","avatar_url":"https://avatars3.githubusercontent.com/u/13135483?v=4","gravatar_id":"","url":"https://api.github.com/users/sean797","html_url":"https://github.com/sean797","followers_url":"https://api.github.com/users/sean797/followers","following_url":"https://api.github.com/users/sean797/following{/other_user}","gists_url":"https://api.github.com/users/sean797/gists{/gist_id}","starred_url":"https://api.github.com/users/sean797/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean797/subscriptions","organizations_url":"https://api.github.com/users/sean797/orgs","repos_url":"https://api.github.com/users/sean797/repos","events_url":"https://api.github.com/users/sean797/events{/privacy}","received_events_url":"https://api.github.com/users/sean797/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sean797/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/sean797/katello","forks_url":"https://api.github.com/repos/sean797/katello/forks","keys_url":"https://api.github.com/repos/sean797/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sean797/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sean797/katello/teams","hooks_url":"https://api.github.com/repos/sean797/katello/hooks","issue_events_url":"https://api.github.com/repos/sean797/katello/issues/events{/number}","events_url":"https://api.github.com/repos/sean797/katello/events","assignees_url":"https://api.github.com/repos/sean797/katello/assignees{/user}","branches_url":"https://api.github.com/repos/sean797/katello/branches{/branch}","tags_url":"https://api.github.com/repos/sean797/katello/tags","blobs_url":"https://api.github.com/repos/sean797/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sean797/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sean797/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/sean797/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sean797/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/sean797/katello/languages","stargazers_url":"https://api.github.com/repos/sean797/katello/stargazers","contributors_url":"https://api.github.com/repos/sean797/katello/contributors","subscribers_url":"https://api.github.com/repos/sean797/katello/subscribers","subscription_url":"https://api.github.com/repos/sean797/katello/subscription","commits_url":"https://api.github.com/repos/sean797/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/sean797/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/sean797/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/sean797/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/sean797/katello/contents/{+path}","compare_url":"https://api.github.com/repos/sean797/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sean797/katello/merges","archive_url":"https://api.github.com/repos/sean797/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sean797/katello/downloads","issues_url":"https://api.github.com/repos/sean797/katello/issues{/number}","pulls_url":"https://api.github.com/repos/sean797/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/sean797/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/sean797/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sean797/katello/labels{/name}","releases_url":"https://api.github.com/repos/sean797/katello/releases{/id}","deployments_url":"https://api.github.com/repos/sean797/katello/deployments","created_at":"2016-10-11T09:47:02Z","updated_at":"2018-04-16T11:19:01Z","pushed_at":"2018-09-04T14:26:29Z","git_url":"git://github.com/sean797/katello.git","ssh_url":"git@github.com:sean797/katello.git","clone_url":"https://github.com/sean797/katello.git","svn_url":"https://github.com/sean797/katello","homepage":"katello.org","size":94928,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Katello:master","ref":"master","sha":"6a2cd0554d55cffc253632173701e1dbfb909f09","user":{"login":"Katello","id":1316386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTYzODY=","avatar_url":"https://avatars0.githubusercontent.com/u/1316386?v=4","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"node_id":"MDEwOlJlcG9zaXRvcnk0MDA3MDE4","name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTYzODY=","avatar_url":"https://avatars0.githubusercontent.com/u/1316386?v=4","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","deployments_url":"https://api.github.com/repos/Katello/katello/deployments","created_at":"2012-04-12T16:59:08Z","updated_at":"2018-09-04T12:44:23Z","pushed_at":"2018-09-04T14:12:27Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":96189,"stargazers_count":241,"watchers_count":241,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":209,"mirror_url":null,"archived":false,"open_issues_count":122,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":209,"open_issues":122,"watchers":241,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/7674"},"html":{"href":"https://github.com/Katello/katello/pull/7674"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/7674"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/7674/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/7674/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/7674/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/fdfc6bb29cfc9c395b4f35b93e12da5cb980729a"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":3,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"sean797"}}