{"action":"created","comment":{"url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/comments/45285078","id":45285078,"diff_hunk":"@@ -0,0 +1,32 @@\n+package com.typesafe.conductr.clientlib.scala.models\n+\n+import java.util.UUID\n+\n+import play.api.libs.json.{ Format, Json }\n+\n+sealed trait BundleRunResult {\n+\n+  def isSuccess: Boolean = this.isInstanceOf[BundleRunSuccess]\n+  def isFailure: Boolean = this.isInstanceOf[BundleRunFailure]\n+\n+  def fold[T](failure: BundleRunFailure => T, success: BundleRunSuccess => T): T = this match {\n+    case s: BundleRunSuccess => success(s)\n+    case f: BundleRunFailure => failure(f)\n+  }\n+}\n+\n+case class BundleRunSuccess(\n+  requestId: UUID,\n+  bundleId: BundleId) extends BundleRunResult\n+\n+object BundleRunSuccess {\n+  implicit val bundleRunSuccessFormat: Format[BundleRunSuccess] = Json.format\n+}\n+\n+case class BundleRunFailure(\n+  code: Int,\n+  error: String) extends BundleRunResult","path":"scala-conductr-client-lib/src/main/scala/com/typesafe/conductr/clientlib/scala/models/BundleRunResult.scala","position":28,"original_position":28,"commit_id":"62cc056a923f35c298dac36760b6253c3196d14a","original_commit_id":"62cc056a923f35c298dac36760b6253c3196d14a","user":{"login":"huntc","id":694893,"avatar_url":"https://avatars.githubusercontent.com/u/694893?v=3","gravatar_id":"","url":"https://api.github.com/users/huntc","html_url":"https://github.com/huntc","followers_url":"https://api.github.com/users/huntc/followers","following_url":"https://api.github.com/users/huntc/following{/other_user}","gists_url":"https://api.github.com/users/huntc/gists{/gist_id}","starred_url":"https://api.github.com/users/huntc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huntc/subscriptions","organizations_url":"https://api.github.com/users/huntc/orgs","repos_url":"https://api.github.com/users/huntc/repos","events_url":"https://api.github.com/users/huntc/events{/privacy}","received_events_url":"https://api.github.com/users/huntc/received_events","type":"User","site_admin":false},"body":"We can probably generalise failure results if all that is being returned is an error string.","created_at":"2015-11-19T00:49:39Z","updated_at":"2015-11-19T00:49:39Z","html_url":"https://github.com/typesafehub/conductr-bundle-lib/pull/64#discussion_r45285078","pull_request_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/comments/45285078"},"html":{"href":"https://github.com/typesafehub/conductr-bundle-lib/pull/64#discussion_r45285078"},"pull_request":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64","id":50562054,"html_url":"https://github.com/typesafehub/conductr-bundle-lib/pull/64","diff_url":"https://github.com/typesafehub/conductr-bundle-lib/pull/64.diff","patch_url":"https://github.com/typesafehub/conductr-bundle-lib/pull/64.patch","issue_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/64","number":64,"state":"open","locked":false,"title":"WIP - DON'T MERGE: conductr-client library","user":{"login":"markusjura","id":1832216,"avatar_url":"https://avatars.githubusercontent.com/u/1832216?v=3","gravatar_id":"","url":"https://api.github.com/users/markusjura","html_url":"https://github.com/markusjura","followers_url":"https://api.github.com/users/markusjura/followers","following_url":"https://api.github.com/users/markusjura/following{/other_user}","gists_url":"https://api.github.com/users/markusjura/gists{/gist_id}","starred_url":"https://api.github.com/users/markusjura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusjura/subscriptions","organizations_url":"https://api.github.com/users/markusjura/orgs","repos_url":"https://api.github.com/users/markusjura/repos","events_url":"https://api.github.com/users/markusjura/events{/privacy}","received_events_url":"https://api.github.com/users/markusjura/received_events","type":"User","site_admin":false},"body":"The conductr-client library provides an interface to communicate with the ConductR control server. This library should we used in several places to make the streamline the communication with ConductR control API, e.g.:\r\n- ConductR testkit\r\n- sbt-conductr\r\n- conductr-haproxy\r\n\r\n**ToDos**\r\n- [x] Move the HTTP related classes from `conductr-bundle-lib` to common modules\r\n- [x] Create HTTP request / response model\r\n- [x] Create API interfaces\r\n- [ ] Implement scala-client-lib\r\n- [ ] Implement akka23-client-lib\r\n- [ ] Implement play23-client-lib\r\n- [ ] Implement play24-client-lib\r\n- [ ] Implement java-client-lib (based on JDK8)\r\n- [ ] Update documentation","created_at":"2015-11-12T20:19:10Z","updated_at":"2015-11-19T00:49:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18283409c2f8e0a963e42c24e6dbde51c57ab9f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64/commits","review_comments_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64/comments","review_comment_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/64/comments","statuses_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/statuses/62cc056a923f35c298dac36760b6253c3196d14a","head":{"label":"markusjura:conductr-client","ref":"conductr-client","sha":"62cc056a923f35c298dac36760b6253c3196d14a","user":{"login":"markusjura","id":1832216,"avatar_url":"https://avatars.githubusercontent.com/u/1832216?v=3","gravatar_id":"","url":"https://api.github.com/users/markusjura","html_url":"https://github.com/markusjura","followers_url":"https://api.github.com/users/markusjura/followers","following_url":"https://api.github.com/users/markusjura/following{/other_user}","gists_url":"https://api.github.com/users/markusjura/gists{/gist_id}","starred_url":"https://api.github.com/users/markusjura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusjura/subscriptions","organizations_url":"https://api.github.com/users/markusjura/orgs","repos_url":"https://api.github.com/users/markusjura/repos","events_url":"https://api.github.com/users/markusjura/events{/privacy}","received_events_url":"https://api.github.com/users/markusjura/received_events","type":"User","site_admin":false},"repo":{"id":40005667,"name":"conductr-bundle-lib","full_name":"markusjura/conductr-bundle-lib","owner":{"login":"markusjura","id":1832216,"avatar_url":"https://avatars.githubusercontent.com/u/1832216?v=3","gravatar_id":"","url":"https://api.github.com/users/markusjura","html_url":"https://github.com/markusjura","followers_url":"https://api.github.com/users/markusjura/followers","following_url":"https://api.github.com/users/markusjura/following{/other_user}","gists_url":"https://api.github.com/users/markusjura/gists{/gist_id}","starred_url":"https://api.github.com/users/markusjura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusjura/subscriptions","organizations_url":"https://api.github.com/users/markusjura/orgs","repos_url":"https://api.github.com/users/markusjura/repos","events_url":"https://api.github.com/users/markusjura/events{/privacy}","received_events_url":"https://api.github.com/users/markusjura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markusjura/conductr-bundle-lib","description":null,"fork":true,"url":"https://api.github.com/repos/markusjura/conductr-bundle-lib","forks_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/forks","keys_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/teams","hooks_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/hooks","issue_events_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/issues/events{/number}","events_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/events","assignees_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/assignees{/user}","branches_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/branches{/branch}","tags_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/tags","blobs_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/languages","stargazers_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/stargazers","contributors_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/contributors","subscribers_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/subscribers","subscription_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/subscription","commits_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/contents/{+path}","compare_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/merges","archive_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/downloads","issues_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/issues{/number}","pulls_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/labels{/name}","releases_url":"https://api.github.com/repos/markusjura/conductr-bundle-lib/releases{/id}","created_at":"2015-07-31T13:04:59Z","updated_at":"2015-07-31T13:05:00Z","pushed_at":"2015-11-18T22:08:51Z","git_url":"git://github.com/markusjura/conductr-bundle-lib.git","ssh_url":"git@github.com:markusjura/conductr-bundle-lib.git","clone_url":"https://github.com/markusjura/conductr-bundle-lib.git","svn_url":"https://github.com/markusjura/conductr-bundle-lib","homepage":null,"size":290,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"typesafehub:master","ref":"master","sha":"8c05cd920571cb896331a7b30bf3060be9f90875","user":{"login":"typesafehub","id":784923,"avatar_url":"https://avatars.githubusercontent.com/u/784923?v=3","gravatar_id":"","url":"https://api.github.com/users/typesafehub","html_url":"https://github.com/typesafehub","followers_url":"https://api.github.com/users/typesafehub/followers","following_url":"https://api.github.com/users/typesafehub/following{/other_user}","gists_url":"https://api.github.com/users/typesafehub/gists{/gist_id}","starred_url":"https://api.github.com/users/typesafehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesafehub/subscriptions","organizations_url":"https://api.github.com/users/typesafehub/orgs","repos_url":"https://api.github.com/users/typesafehub/repos","events_url":"https://api.github.com/users/typesafehub/events{/privacy}","received_events_url":"https://api.github.com/users/typesafehub/received_events","type":"Organization","site_admin":false},"repo":{"id":30228350,"name":"conductr-bundle-lib","full_name":"typesafehub/conductr-bundle-lib","owner":{"login":"typesafehub","id":784923,"avatar_url":"https://avatars.githubusercontent.com/u/784923?v=3","gravatar_id":"","url":"https://api.github.com/users/typesafehub","html_url":"https://github.com/typesafehub","followers_url":"https://api.github.com/users/typesafehub/followers","following_url":"https://api.github.com/users/typesafehub/following{/other_user}","gists_url":"https://api.github.com/users/typesafehub/gists{/gist_id}","starred_url":"https://api.github.com/users/typesafehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typesafehub/subscriptions","organizations_url":"https://api.github.com/users/typesafehub/orgs","repos_url":"https://api.github.com/users/typesafehub/repos","events_url":"https://api.github.com/users/typesafehub/events{/privacy}","received_events_url":"https://api.github.com/users/typesafehub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typesafehub/conductr-bundle-lib","description":null,"fork":false,"url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib","forks_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/forks","keys_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/teams","hooks_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/hooks","issue_events_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/events{/number}","events_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/events","assignees_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/assignees{/user}","branches_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/branches{/branch}","tags_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/tags","blobs_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/languages","stargazers_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/stargazers","contributors_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/contributors","subscribers_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/subscribers","subscription_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/subscription","commits_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/contents/{+path}","compare_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/merges","archive_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/downloads","issues_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues{/number}","pulls_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/labels{/name}","releases_url":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/releases{/id}","created_at":"2015-02-03T06:16:58Z","updated_at":"2015-07-24T18:38:17Z","pushed_at":"2015-11-18T22:08:52Z","git_url":"git://github.com/typesafehub/conductr-bundle-lib.git","ssh_url":"git@github.com:typesafehub/conductr-bundle-lib.git","clone_url":"https://github.com/typesafehub/conductr-bundle-lib.git","svn_url":"https://github.com/typesafehub/conductr-bundle-lib","homepage":null,"size":286,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64"},"html":{"href":"https://github.com/typesafehub/conductr-bundle-lib/pull/64"},"issue":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/64"},"comments":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/typesafehub/conductr-bundle-lib/statuses/62cc056a923f35c298dac36760b6253c3196d14a"}}}}