{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/30450250","id":30450250,"diff_hunk":"@@ -20,56 +20,54 @@ Download publish settings file from https://manage.windowsazure.com/publishsetti\n package main\n \n import (\n-    \"fmt\"\n+\t\"encoding/base64\"\n+\t\"fmt\"\n \n-    \"github.com/Azure/azure-sdk-for-go/management\"\n-    \"github.com/Azure/azure-sdk-for-go/management/hostedservice\"\n-    \"github.com/Azure/azure-sdk-for-go/management/virtualmachine\"\n-    \"github.com/Azure/azure-sdk-for-go/management/vmutils\"","path":"README.md","position":11,"original_position":11,"commit_id":"aae0ec4a7a32711458cfa9205068fce40c0f478d","original_commit_id":"aae0ec4a7a32711458cfa9205068fce40c0f478d","user":{"login":"paulmey","id":1740197,"avatar_url":"https://avatars.githubusercontent.com/u/1740197?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmey","html_url":"https://github.com/paulmey","followers_url":"https://api.github.com/users/paulmey/followers","following_url":"https://api.github.com/users/paulmey/following{/other_user}","gists_url":"https://api.github.com/users/paulmey/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmey/subscriptions","organizations_url":"https://api.github.com/users/paulmey/orgs","repos_url":"https://api.github.com/users/paulmey/repos","events_url":"https://api.github.com/users/paulmey/events{/privacy}","received_events_url":"https://api.github.com/users/paulmey/received_events","type":"User","site_admin":false},"body":"but the example method itself is part of the vmutils package, I guess... so these references need to be put back manually...?","created_at":"2015-05-15T22:10:53Z","updated_at":"2015-05-15T22:10:53Z","html_url":"https://github.com/Azure/azure-sdk-for-go/pull/130#discussion_r30450250","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/30450250"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/130#discussion_r30450250"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130","id":35492566,"html_url":"https://github.com/Azure/azure-sdk-for-go/pull/130","diff_url":"https://github.com/Azure/azure-sdk-for-go/pull/130.diff","patch_url":"https://github.com/Azure/azure-sdk-for-go/pull/130.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/130","number":130,"state":"open","locked":false,"title":"management/hostedservice: Refactoring various parts","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"1. `CreateHostedService` func now takes a struct input\r\n   to stabilize the function signature. (base64 encoding of `Label` left to the\r\n   user, just like in the rest API. implicitly handling that confuses user more.)\r\n2. `CreateHostedService` is actually not a long running operation,\r\n   therefore just returning `error` value from that func now.\r\n3. Changed `CheckHostedServiceNameAvailabilityMethod` to return\r\n   the correct response struct to the user.\r\n4. Updated example codes and tests to accomodate changes.\r\n   (Please run the integration tests after merging this.)\r\n\r\ncc: @paulmey please review","created_at":"2015-05-15T08:08:34Z","updated_at":"2015-05-15T22:10:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47d7c07963089d055a2c1f4dd2b51a8b8564a5b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/130/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/aae0ec4a7a32711458cfa9205068fce40c0f478d","head":{"label":"ahmetalpbalkan:hostedservice-fixes","ref":"hostedservice-fixes","sha":"aae0ec4a7a32711458cfa9205068fce40c0f478d","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"repo":{"id":26340012,"name":"azure-sdk-for-go","full_name":"ahmetalpbalkan/azure-sdk-for-go","owner":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahmetalpbalkan/azure-sdk-for-go","description":"azure-sdk-for-go","fork":true,"url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go","forks_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/forks","keys_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/teams","hooks_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/hooks","issue_events_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/issues/events{/number}","events_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/events","assignees_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/assignees{/user}","branches_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/branches{/branch}","tags_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/tags","blobs_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/statuses/{sha}","languages_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/languages","stargazers_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/stargazers","contributors_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/contributors","subscribers_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/subscribers","subscription_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/subscription","commits_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/contents/{+path}","compare_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/merges","archive_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/downloads","issues_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/issues{/number}","pulls_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/pulls{/number}","milestones_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/milestones{/number}","notifications_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/labels{/name}","releases_url":"https://api.github.com/repos/ahmetalpbalkan/azure-sdk-for-go/releases{/id}","created_at":"2014-11-07T22:04:53Z","updated_at":"2015-01-17T10:32:52Z","pushed_at":"2015-05-15T20:12:05Z","git_url":"git://github.com/ahmetalpbalkan/azure-sdk-for-go.git","ssh_url":"git@github.com:ahmetalpbalkan/azure-sdk-for-go.git","clone_url":"https://github.com/ahmetalpbalkan/azure-sdk-for-go.git","svn_url":"https://github.com/ahmetalpbalkan/azure-sdk-for-go","homepage":null,"size":1099,"stargazers_count":1,"watchers_count":1,"language":"Go","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":1,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"b2dbe90be9b388e1b828fb3958b64337602c8c17","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":22855240,"name":"azure-sdk-for-go","full_name":"Azure/azure-sdk-for-go","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-sdk-for-go","description":"azure-sdk-for-go","fork":false,"url":"https://api.github.com/repos/Azure/azure-sdk-for-go","forks_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/forks","keys_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/teams","hooks_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/events","assignees_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/tags","blobs_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/subscription","commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/merges","archive_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/downloads","issues_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/releases{/id}","created_at":"2014-08-11T21:18:43Z","updated_at":"2015-05-14T09:17:18Z","pushed_at":"2015-05-15T21:52:01Z","git_url":"git://github.com/Azure/azure-sdk-for-go.git","ssh_url":"git@github.com:Azure/azure-sdk-for-go.git","clone_url":"https://github.com/Azure/azure-sdk-for-go.git","svn_url":"https://github.com/Azure/azure-sdk-for-go","homepage":null,"size":2586,"stargazers_count":54,"watchers_count":54,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":15,"forks":26,"open_issues":15,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/130"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/130"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/aae0ec4a7a32711458cfa9205068fce40c0f478d"}}}}