{"action":"opened","number":70,"pull_request":{"url":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70","id":44685456,"html_url":"https://github.com/alien4cloud/alien4cloud/pull/70","diff_url":"https://github.com/alien4cloud/alien4cloud/pull/70.diff","patch_url":"https://github.com/alien4cloud/alien4cloud/pull/70.patch","issue_url":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/70","number":70,"state":"open","locked":false,"title":"Define a generic policy","user":{"login":"ahgittin","id":496540,"avatar_url":"https://avatars.githubusercontent.com/u/496540?v=3","gravatar_id":"","url":"https://api.github.com/users/ahgittin","html_url":"https://github.com/ahgittin","followers_url":"https://api.github.com/users/ahgittin/followers","following_url":"https://api.github.com/users/ahgittin/following{/other_user}","gists_url":"https://api.github.com/users/ahgittin/gists{/gist_id}","starred_url":"https://api.github.com/users/ahgittin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahgittin/subscriptions","organizations_url":"https://api.github.com/users/ahgittin/orgs","repos_url":"https://api.github.com/users/ahgittin/repos","events_url":"https://api.github.com/users/ahgittin/events{/privacy}","received_events_url":"https://api.github.com/users/ahgittin/received_events","type":"User","site_admin":false},"body":"This allows arbitrary policies to be specified in TOSCA and used through the API.\r\n\r\nAs with interfaces (#69) this won't yet be supported in the GUI, but it should help when that times come.\r\n\r\nIn this case the treatment of policies is being changed in TOSCA, but there will definitely still be a need to work with policies which aren't defined as Java types in Alien4Cloud; this code may be thrown away when that time comes (along with `HaPolicy` which is already present) although it might end up being useful, depending how that goes.\r\n\r\nIn the meantime this allows us to use A4C to configure and store arbitrary policies!\r\n","created_at":"2015-09-10T15:55:04Z","updated_at":"2015-09-10T15:55:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70/commits","review_comments_url":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70/comments","review_comment_url":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/70/comments","statuses_url":"https://api.github.com/repos/alien4cloud/alien4cloud/statuses/a626211e482f4f4a86b9abc763c8b0fc34e20fd5","head":{"label":"ahgittin:policies-generic","ref":"policies-generic","sha":"a626211e482f4f4a86b9abc763c8b0fc34e20fd5","user":{"login":"ahgittin","id":496540,"avatar_url":"https://avatars.githubusercontent.com/u/496540?v=3","gravatar_id":"","url":"https://api.github.com/users/ahgittin","html_url":"https://github.com/ahgittin","followers_url":"https://api.github.com/users/ahgittin/followers","following_url":"https://api.github.com/users/ahgittin/following{/other_user}","gists_url":"https://api.github.com/users/ahgittin/gists{/gist_id}","starred_url":"https://api.github.com/users/ahgittin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahgittin/subscriptions","organizations_url":"https://api.github.com/users/ahgittin/orgs","repos_url":"https://api.github.com/users/ahgittin/repos","events_url":"https://api.github.com/users/ahgittin/events{/privacy}","received_events_url":"https://api.github.com/users/ahgittin/received_events","type":"User","site_admin":false},"repo":{"id":36428462,"name":"alien4cloud","full_name":"ahgittin/alien4cloud","owner":{"login":"ahgittin","id":496540,"avatar_url":"https://avatars.githubusercontent.com/u/496540?v=3","gravatar_id":"","url":"https://api.github.com/users/ahgittin","html_url":"https://github.com/ahgittin","followers_url":"https://api.github.com/users/ahgittin/followers","following_url":"https://api.github.com/users/ahgittin/following{/other_user}","gists_url":"https://api.github.com/users/ahgittin/gists{/gist_id}","starred_url":"https://api.github.com/users/ahgittin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahgittin/subscriptions","organizations_url":"https://api.github.com/users/ahgittin/orgs","repos_url":"https://api.github.com/users/ahgittin/repos","events_url":"https://api.github.com/users/ahgittin/events{/privacy}","received_events_url":"https://api.github.com/users/ahgittin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahgittin/alien4cloud","description":"Application LIfecycle ENablement for Cloud","fork":true,"url":"https://api.github.com/repos/ahgittin/alien4cloud","forks_url":"https://api.github.com/repos/ahgittin/alien4cloud/forks","keys_url":"https://api.github.com/repos/ahgittin/alien4cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahgittin/alien4cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahgittin/alien4cloud/teams","hooks_url":"https://api.github.com/repos/ahgittin/alien4cloud/hooks","issue_events_url":"https://api.github.com/repos/ahgittin/alien4cloud/issues/events{/number}","events_url":"https://api.github.com/repos/ahgittin/alien4cloud/events","assignees_url":"https://api.github.com/repos/ahgittin/alien4cloud/assignees{/user}","branches_url":"https://api.github.com/repos/ahgittin/alien4cloud/branches{/branch}","tags_url":"https://api.github.com/repos/ahgittin/alien4cloud/tags","blobs_url":"https://api.github.com/repos/ahgittin/alien4cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahgittin/alien4cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahgittin/alien4cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahgittin/alien4cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahgittin/alien4cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/ahgittin/alien4cloud/languages","stargazers_url":"https://api.github.com/repos/ahgittin/alien4cloud/stargazers","contributors_url":"https://api.github.com/repos/ahgittin/alien4cloud/contributors","subscribers_url":"https://api.github.com/repos/ahgittin/alien4cloud/subscribers","subscription_url":"https://api.github.com/repos/ahgittin/alien4cloud/subscription","commits_url":"https://api.github.com/repos/ahgittin/alien4cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahgittin/alien4cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahgittin/alien4cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahgittin/alien4cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahgittin/alien4cloud/contents/{+path}","compare_url":"https://api.github.com/repos/ahgittin/alien4cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahgittin/alien4cloud/merges","archive_url":"https://api.github.com/repos/ahgittin/alien4cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahgittin/alien4cloud/downloads","issues_url":"https://api.github.com/repos/ahgittin/alien4cloud/issues{/number}","pulls_url":"https://api.github.com/repos/ahgittin/alien4cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/ahgittin/alien4cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/ahgittin/alien4cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahgittin/alien4cloud/labels{/name}","releases_url":"https://api.github.com/repos/ahgittin/alien4cloud/releases{/id}","created_at":"2015-05-28T09:33:31Z","updated_at":"2015-05-28T09:33:36Z","pushed_at":"2015-09-10T15:51:17Z","git_url":"git://github.com/ahgittin/alien4cloud.git","ssh_url":"git@github.com:ahgittin/alien4cloud.git","clone_url":"https://github.com/ahgittin/alien4cloud.git","svn_url":"https://github.com/ahgittin/alien4cloud","homepage":"","size":10112,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alien4cloud:develop","ref":"develop","sha":"c4bfb22804866f3a06d0da130b1f4f28fe6e8c0c","user":{"login":"alien4cloud","id":8777718,"avatar_url":"https://avatars.githubusercontent.com/u/8777718?v=3","gravatar_id":"","url":"https://api.github.com/users/alien4cloud","html_url":"https://github.com/alien4cloud","followers_url":"https://api.github.com/users/alien4cloud/followers","following_url":"https://api.github.com/users/alien4cloud/following{/other_user}","gists_url":"https://api.github.com/users/alien4cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/alien4cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alien4cloud/subscriptions","organizations_url":"https://api.github.com/users/alien4cloud/orgs","repos_url":"https://api.github.com/users/alien4cloud/repos","events_url":"https://api.github.com/users/alien4cloud/events{/privacy}","received_events_url":"https://api.github.com/users/alien4cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":24750302,"name":"alien4cloud","full_name":"alien4cloud/alien4cloud","owner":{"login":"alien4cloud","id":8777718,"avatar_url":"https://avatars.githubusercontent.com/u/8777718?v=3","gravatar_id":"","url":"https://api.github.com/users/alien4cloud","html_url":"https://github.com/alien4cloud","followers_url":"https://api.github.com/users/alien4cloud/followers","following_url":"https://api.github.com/users/alien4cloud/following{/other_user}","gists_url":"https://api.github.com/users/alien4cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/alien4cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alien4cloud/subscriptions","organizations_url":"https://api.github.com/users/alien4cloud/orgs","repos_url":"https://api.github.com/users/alien4cloud/repos","events_url":"https://api.github.com/users/alien4cloud/events{/privacy}","received_events_url":"https://api.github.com/users/alien4cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alien4cloud/alien4cloud","description":"Application LIfecycle ENablement for Cloud","fork":false,"url":"https://api.github.com/repos/alien4cloud/alien4cloud","forks_url":"https://api.github.com/repos/alien4cloud/alien4cloud/forks","keys_url":"https://api.github.com/repos/alien4cloud/alien4cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alien4cloud/alien4cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alien4cloud/alien4cloud/teams","hooks_url":"https://api.github.com/repos/alien4cloud/alien4cloud/hooks","issue_events_url":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/events{/number}","events_url":"https://api.github.com/repos/alien4cloud/alien4cloud/events","assignees_url":"https://api.github.com/repos/alien4cloud/alien4cloud/assignees{/user}","branches_url":"https://api.github.com/repos/alien4cloud/alien4cloud/branches{/branch}","tags_url":"https://api.github.com/repos/alien4cloud/alien4cloud/tags","blobs_url":"https://api.github.com/repos/alien4cloud/alien4cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alien4cloud/alien4cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alien4cloud/alien4cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/alien4cloud/alien4cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alien4cloud/alien4cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/alien4cloud/alien4cloud/languages","stargazers_url":"https://api.github.com/repos/alien4cloud/alien4cloud/stargazers","contributors_url":"https://api.github.com/repos/alien4cloud/alien4cloud/contributors","subscribers_url":"https://api.github.com/repos/alien4cloud/alien4cloud/subscribers","subscription_url":"https://api.github.com/repos/alien4cloud/alien4cloud/subscription","commits_url":"https://api.github.com/repos/alien4cloud/alien4cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/alien4cloud/alien4cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/alien4cloud/alien4cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/alien4cloud/alien4cloud/contents/{+path}","compare_url":"https://api.github.com/repos/alien4cloud/alien4cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alien4cloud/alien4cloud/merges","archive_url":"https://api.github.com/repos/alien4cloud/alien4cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alien4cloud/alien4cloud/downloads","issues_url":"https://api.github.com/repos/alien4cloud/alien4cloud/issues{/number}","pulls_url":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/alien4cloud/alien4cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/alien4cloud/alien4cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alien4cloud/alien4cloud/labels{/name}","releases_url":"https://api.github.com/repos/alien4cloud/alien4cloud/releases{/id}","created_at":"2014-10-03T07:34:22Z","updated_at":"2015-08-26T13:36:57Z","pushed_at":"2015-09-10T14:45:56Z","git_url":"git://github.com/alien4cloud/alien4cloud.git","ssh_url":"git@github.com:alien4cloud/alien4cloud.git","clone_url":"https://github.com/alien4cloud/alien4cloud.git","svn_url":"https://github.com/alien4cloud/alien4cloud","homepage":"","size":13963,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":19,"forks":12,"open_issues":19,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70"},"html":{"href":"https://github.com/alien4cloud/alien4cloud/pull/70"},"issue":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/70"},"comments":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/alien4cloud/alien4cloud/statuses/a626211e482f4f4a86b9abc763c8b0fc34e20fd5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":113,"deletions":57,"changed_files":5}}