{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/37024014","id":37024014,"diff_hunk":"@@ -0,0 +1,2031 @@\n+// Copyright (c) Microsoft and contributors.  All rights reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+// http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+//\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+//\n+// Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0\n+// Changes may cause incorrect behavior and will be lost if the code is\n+// regenerated.\n+\n+package compute\n+\n+import (\n+\t\"fmt\"\n+\t\"github.com/azure/go-autorest/autorest\"\n+\t\"net/http\"\n+\t\"net/url\"\n+\t\"time\"\n+)\n+\n+const (\n+\tApiVersion             = \"2015-06-15\"\n+\tDefaultBaseUri         = \"https://management.azure.com\"\n+\tDefaultPollingDuration = 10 * time.Minute\n+)\n+\n+type ComputeManagementClient struct {\n+\tautorest.Client\n+\tBaseUri        string\n+\tSubscriptionId string\n+}\n+\n+func New(subscriptionId string) *ComputeManagementClient {\n+\treturn NewWithBaseUri(DefaultBaseUri, subscriptionId)\n+}\n+\n+func NewWithBaseUri(baseUri string, subscriptionId string) *ComputeManagementClient {\n+\tclient := &ComputeManagementClient{BaseUri: baseUri, SubscriptionId: subscriptionId}\n+\tclient.PollingMode = autorest.PollUntilDuration\n+\tclient.PollingDuration = DefaultPollingDuration\n+\treturn client\n+}\n+\n+////////////////////////////////////////////////////////////////////////////////\n+//\n+// AvailabilitySets Client\n+//\n+////////////////////////////////////////////////////////////////////////////////\n+type AvailabilitySetsClient struct {\n+\tComputeManagementClient\n+}\n+\n+func NewAvailabilitySetsClient(subscriptionId string) *AvailabilitySetsClient {\n+\treturn NewAvailabilitySetsClientWithBaseUri(DefaultBaseUri, subscriptionId)\n+}\n+\n+func NewAvailabilitySetsClientWithBaseUri(baseUri string, subscriptionId string) *AvailabilitySetsClient {\n+\treturn &AvailabilitySetsClient{*NewWithBaseUri(baseUri, subscriptionId)}\n+}\n+\n+// Delete the operation to delete the availability set.;\n+//\n+// resourceGroupName is the name of the resource group. availabilitySetName is\n+// the name of the availability set.\n+func (client *AvailabilitySetsClient) Delete(resourceGroupName string, availabilitySetName string) (err error) {\n+\n+\treq, err := client.NewDeleteRequest(resourceGroupName, availabilitySetName)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"compute: Failure preparing AvailabilitySetsClient.Delete request (%v)\", err)\n+\t}\n+\n+\treq, err = autorest.Prepare(\n+\t\treq,\n+\t\tclient.WithAuthorization(),\n+\t\tclient.WithInspection())\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"compute: Failure sending AvailabilitySetsClient.Delete request (%v)\", err)\n+\t}\n+\n+\tresp, err := autorest.SendWithSender(client, req)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"compute: Failure sending AvailabilitySetsClient.Delete request (%v)\", err)\n+\t}\n+\n+\terr = autorest.Respond(\n+\t\tresp,\n+\t\tclient.ByInspecting(),\n+\t\tautorest.WithErrorUnlessOK(),\n+\t\tautorest.ByClosing())\n+\n+\treturn\n+}\n+\n+func (client *AvailabilitySetsClient) NewDeleteRequest(resourceGroupName string, availabilitySetName string) (*http.Request, error) {\n+\n+\tpathParameters := map[string]interface{}{\n+\t\t\"availabilitySetName\": url.QueryEscape(availabilitySetName),","path":"arm/compute/client.go","position":105,"original_position":105,"commit_id":"68fb142564a6da7027544a0a113a0195f3585cd5","original_commit_id":"68fb142564a6da7027544a0a113a0195f3585cd5","user":{"login":"brendandixon","id":305205,"avatar_url":"https://avatars.githubusercontent.com/u/305205?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandixon","html_url":"https://github.com/brendandixon","followers_url":"https://api.github.com/users/brendandixon/followers","following_url":"https://api.github.com/users/brendandixon/following{/other_user}","gists_url":"https://api.github.com/users/brendandixon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandixon/subscriptions","organizations_url":"https://api.github.com/users/brendandixon/orgs","repos_url":"https://api.github.com/users/brendandixon/repos","events_url":"https://api.github.com/users/brendandixon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandixon/received_events","type":"User","site_admin":false},"body":"@ahmetalpbalkan The \"switch\" in the Swagger (i.e., x-ms-skip-url-encoding) applies per argument and, so, cannot be moved into WithPathParameters. It must be applied, at runtime, per parameter.","created_at":"2015-08-13T20:53:57Z","updated_at":"2015-08-13T20:53:57Z","html_url":"https://github.com/Azure/azure-sdk-for-go/pull/185#discussion_r37024014","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/comments/37024014"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/185#discussion_r37024014"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185","id":42377226,"html_url":"https://github.com/Azure/azure-sdk-for-go/pull/185","diff_url":"https://github.com/Azure/azure-sdk-for-go/pull/185.diff","patch_url":"https://github.com/Azure/azure-sdk-for-go/pull/185.patch","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/185","number":185,"state":"open","locked":false,"title":"Alpha of ARM packages","user":{"login":"brendandixon","id":305205,"avatar_url":"https://avatars.githubusercontent.com/u/305205?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandixon","html_url":"https://github.com/brendandixon","followers_url":"https://api.github.com/users/brendandixon/followers","following_url":"https://api.github.com/users/brendandixon/following{/other_user}","gists_url":"https://api.github.com/users/brendandixon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandixon/subscriptions","organizations_url":"https://api.github.com/users/brendandixon/orgs","repos_url":"https://api.github.com/users/brendandixon/repos","events_url":"https://api.github.com/users/brendandixon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandixon/received_events","type":"User","site_admin":false},"body":"Alpha of generated ARM packages\r\n\r\nSigned-off-by: Brendan Dixon <brendand@microsoft.com>","created_at":"2015-08-13T17:35:45Z","updated_at":"2015-08-13T20:53:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f49ee35efff40718c7939a7ed4d45942c5dddad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185/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/185/comments","statuses_url":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/68fb142564a6da7027544a0a113a0195f3585cd5","head":{"label":"brendandixon:arm-alpha","ref":"arm-alpha","sha":"68fb142564a6da7027544a0a113a0195f3585cd5","user":{"login":"brendandixon","id":305205,"avatar_url":"https://avatars.githubusercontent.com/u/305205?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandixon","html_url":"https://github.com/brendandixon","followers_url":"https://api.github.com/users/brendandixon/followers","following_url":"https://api.github.com/users/brendandixon/following{/other_user}","gists_url":"https://api.github.com/users/brendandixon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandixon/subscriptions","organizations_url":"https://api.github.com/users/brendandixon/orgs","repos_url":"https://api.github.com/users/brendandixon/repos","events_url":"https://api.github.com/users/brendandixon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandixon/received_events","type":"User","site_admin":false},"repo":{"id":37883443,"name":"azure-sdk-for-go","full_name":"brendandixon/azure-sdk-for-go","owner":{"login":"brendandixon","id":305205,"avatar_url":"https://avatars.githubusercontent.com/u/305205?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandixon","html_url":"https://github.com/brendandixon","followers_url":"https://api.github.com/users/brendandixon/followers","following_url":"https://api.github.com/users/brendandixon/following{/other_user}","gists_url":"https://api.github.com/users/brendandixon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandixon/subscriptions","organizations_url":"https://api.github.com/users/brendandixon/orgs","repos_url":"https://api.github.com/users/brendandixon/repos","events_url":"https://api.github.com/users/brendandixon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandixon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendandixon/azure-sdk-for-go","description":"Microsoft Azure SDK for Go","fork":true,"url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go","forks_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/forks","keys_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/teams","hooks_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/hooks","issue_events_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/issues/events{/number}","events_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/events","assignees_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/assignees{/user}","branches_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/branches{/branch}","tags_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/tags","blobs_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/statuses/{sha}","languages_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/languages","stargazers_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/stargazers","contributors_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/contributors","subscribers_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/subscribers","subscription_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/subscription","commits_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/contents/{+path}","compare_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/merges","archive_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/downloads","issues_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/issues{/number}","pulls_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/pulls{/number}","milestones_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/milestones{/number}","notifications_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/labels{/name}","releases_url":"https://api.github.com/repos/brendandixon/azure-sdk-for-go/releases{/id}","created_at":"2015-06-22T22:14:37Z","updated_at":"2015-06-22T22:14:37Z","pushed_at":"2015-08-13T17:32:04Z","git_url":"git://github.com/brendandixon/azure-sdk-for-go.git","ssh_url":"git@github.com:brendandixon/azure-sdk-for-go.git","clone_url":"https://github.com/brendandixon/azure-sdk-for-go.git","svn_url":"https://github.com/brendandixon/azure-sdk-for-go","homepage":"","size":1090,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"99b5c364c7be7088d138aef0afce0b5a70855b03","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":"Microsoft 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-07-31T14:35:25Z","pushed_at":"2015-08-13T17:35:46Z","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":"","size":1972,"stargazers_count":68,"watchers_count":68,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":14,"forks":37,"open_issues":14,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185"},"html":{"href":"https://github.com/Azure/azure-sdk-for-go/pull/185"},"issue":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/185"},"comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/pulls/185/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/185/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-sdk-for-go/statuses/68fb142564a6da7027544a0a113a0195f3585cd5"}}}}