{"action":"created","comment":{"url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/comments/76346888","id":76346888,"diff_hunk":"@@ -0,0 +1,177 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Diagnostics;\n+using System.IO;\n+using System.Linq;\n+using System.Net;\n+using System.Net.Cache;\n+using System.Net.Http;\n+using System.Net.Sockets;\n+using System.Text;\n+using System.Text.RegularExpressions;\n+using System.Threading.Tasks;\n+using System.Web;\n+using System.Web.Hosting;\n+using Kudu.Client.Editor;\n+using Newtonsoft.Json;\n+using SimpleWAWS.Kudu;\n+using Newtonsoft.Json.Converters;\n+using SimpleWAWS.Code;\n+using SimpleWAWS.Code.CsmExtensions;\n+using SimpleWAWS.Trace;\n+using System.Configuration;\n+using System.Globalization;\n+\n+namespace SimpleWAWS.Models\n+{\n+    public class Site : BaseResource\n+    {\n+        private string _csmIdTemplate = \"/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Web/sites/{2}\";\n+\n+        public override string CsmId\n+        {\n+            get\n+            {\n+                return string.Format(CultureInfo.InvariantCulture, _csmIdTemplate, SubscriptionId, ResourceGroupName, SiteName);\n+            }\n+        }\n+\n+        public string SiteName { get; private set; }\n+\n+        public Dictionary<string, string> AppSettings { get; set; }\n+\n+        public Dictionary<string, string> Metadata { get; set; }\n+\n+        public string HostName { get; set; }\n+\n+        public string ScmHostName { get; set; }\n+\n+        public Site(string subscriptionId, string resourceGroupName, string name, string kind = null)\n+            : base (subscriptionId, resourceGroupName)\n+        {\n+            this.SiteName = name;\n+            this.Kind = kind;\n+        }\n+\n+        public string Url\n+        {\n+            get \n+            {\n+                return String.Format(CultureInfo.InvariantCulture, \"https://{0}/\", HostName);\n+            }\n+        }\n+\n+        public string GetMobileUrl(string templateName)\n+        {\n+            return Url + (templateName.Equals(\"Todo List\", StringComparison.OrdinalIgnoreCase) ? \"jsclient\" : \"admin\");\n+        }\n+\n+        public string ScmUrl\n+        {\n+            get\n+            {\n+                return String.Format(CultureInfo.InvariantCulture, \"https://{0}/\", ScmHostName);\n+            }\n+        }\n+\n+        public string ScmUrlWithCreds\n+        {\n+            get\n+            {\n+                return String.Format(CultureInfo.InvariantCulture, \"https://{0}:{1}@{2}/\", PublishingUserName, PublishingPassword, ScmHostName);\n+            }\n+        }\n+\n+        public string KuduConsoleWithCreds\n+        {\n+            get\n+            {\n+                return ScmUrlWithCreds + \"DebugConsole\";\n+            }\n+        }\n+\n+        public string GitUrlWithCreds\n+        {\n+            get\n+            {\n+                return ScmUrlWithCreds + SiteName + \".git\";\n+            }\n+        }\n+\n+        public string MonacoUrl\n+        {\n+            get\n+            {\n+                return ScmUrl + \"dev\";\n+            }\n+        }\n+\n+        public string ContentDownloadUrl\n+        {\n+            get\n+            {\n+                return ScmUrl + \"zip/site/wwwroot\";\n+            }\n+        }\n+\n+        public string IbizaUrl\n+        {\n+            get\n+            {\n+                return string.Concat(\"https://portal.azure.com/\", SimpleSettings.TryTenantName, \"#resource\", CsmId);\n+            }\n+        }\n+\n+        public string PublishingUserName { get; set; }\n+\n+        public string PublishingPassword { get; set; }\n+\n+        public bool IsSimpleWAWSOriginalSite\n+        {\n+            get\n+            {\n+                return !string.IsNullOrEmpty(SiteName) &&\n+                       Regex.IsMatch(SiteName, \"^[A-F0-9]{8}-0ee0-4-231-b9ee$\", RegexOptions.IgnoreCase);\n+            }\n+        }\n+        public string Kind { get; set; }\n+\n+        public bool IsFunctionsContainer\n+        {\n+            get\n+            {\n+\n+                return !string.IsNullOrEmpty(Kind) &&\n+                    Kind.StartsWith(Constants.FunctionsContainerSiteKind);\n+            }\n+        }\n+\n+        public bool NameStartsWithFunctions","path":"SimplaeWAWS.Models/Site.cs","position":149,"original_position":149,"commit_id":"7906f62054ebbac3192c7e4c0216f20664cdf8d5","original_commit_id":"7906f62054ebbac3192c7e4c0216f20664cdf8d5","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"body":"Aah its a duplicate file. The directory  doesnt need to be there. its in the wrong directory . I'll remvoe the file","created_at":"2016-08-26T00:06:45Z","updated_at":"2016-08-26T00:06:45Z","html_url":"https://github.com/projectkudu/SimpleWAWS/pull/34#discussion_r76346888","pull_request_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/comments/76346888"},"html":{"href":"https://github.com/projectkudu/SimpleWAWS/pull/34#discussion_r76346888"},"pull_request":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34","id":82049512,"html_url":"https://github.com/projectkudu/SimpleWAWS/pull/34","diff_url":"https://github.com/projectkudu/SimpleWAWS/pull/34.diff","patch_url":"https://github.com/projectkudu/SimpleWAWS/pull/34.patch","issue_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/34","number":34,"state":"open","locked":false,"title":"Changes to support Try Functions","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-19T21:36:51Z","updated_at":"2016-08-26T00:06:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ceb0a2c726368ee8d0ceb8451f14a8f92413af62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34/commits","review_comments_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34/comments","review_comment_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/34/comments","statuses_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/statuses/7906f62054ebbac3192c7e4c0216f20664cdf8d5","head":{"label":"fashaikh:dev","ref":"dev","sha":"7906f62054ebbac3192c7e4c0216f20664cdf8d5","user":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"repo":{"id":60380726,"name":"SimpleWAWS-1","full_name":"fashaikh/SimpleWAWS-1","owner":{"login":"fashaikh","id":2650941,"avatar_url":"https://avatars.githubusercontent.com/u/2650941?v=3","gravatar_id":"","url":"https://api.github.com/users/fashaikh","html_url":"https://github.com/fashaikh","followers_url":"https://api.github.com/users/fashaikh/followers","following_url":"https://api.github.com/users/fashaikh/following{/other_user}","gists_url":"https://api.github.com/users/fashaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/fashaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fashaikh/subscriptions","organizations_url":"https://api.github.com/users/fashaikh/orgs","repos_url":"https://api.github.com/users/fashaikh/repos","events_url":"https://api.github.com/users/fashaikh/events{/privacy}","received_events_url":"https://api.github.com/users/fashaikh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fashaikh/SimpleWAWS-1","description":"The engine behind 'Try AppService'","fork":true,"url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1","forks_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/forks","keys_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/teams","hooks_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/hooks","issue_events_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/issues/events{/number}","events_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/events","assignees_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/assignees{/user}","branches_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/branches{/branch}","tags_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/tags","blobs_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/statuses/{sha}","languages_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/languages","stargazers_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/stargazers","contributors_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/contributors","subscribers_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/subscribers","subscription_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/subscription","commits_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/contents/{+path}","compare_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/merges","archive_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/downloads","issues_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/issues{/number}","pulls_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/pulls{/number}","milestones_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/milestones{/number}","notifications_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/labels{/name}","releases_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/releases{/id}","deployments_url":"https://api.github.com/repos/fashaikh/SimpleWAWS-1/deployments","created_at":"2016-06-03T22:12:05Z","updated_at":"2016-06-03T22:12:06Z","pushed_at":"2016-08-25T21:54:46Z","git_url":"git://github.com/fashaikh/SimpleWAWS-1.git","ssh_url":"git@github.com:fashaikh/SimpleWAWS-1.git","clone_url":"https://github.com/fashaikh/SimpleWAWS-1.git","svn_url":"https://github.com/fashaikh/SimpleWAWS-1","homepage":"https://tryAppService.azure.com","size":4970,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"projectkudu:master","ref":"master","sha":"24083b5c8a386d4ad73f62b9908e5ea9f5ad5f89","user":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"repo":{"id":30261570,"name":"SimpleWAWS","full_name":"projectkudu/SimpleWAWS","owner":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectkudu/SimpleWAWS","description":"The engine behind 'Try AppService'","fork":true,"url":"https://api.github.com/repos/projectkudu/SimpleWAWS","forks_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/forks","keys_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/teams","hooks_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/hooks","issue_events_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/events{/number}","events_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/events","assignees_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/assignees{/user}","branches_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/branches{/branch}","tags_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/tags","blobs_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/statuses/{sha}","languages_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/languages","stargazers_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/stargazers","contributors_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/contributors","subscribers_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/subscribers","subscription_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/subscription","commits_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/contents/{+path}","compare_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/merges","archive_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/downloads","issues_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues{/number}","pulls_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls{/number}","milestones_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/milestones{/number}","notifications_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/labels{/name}","releases_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/releases{/id}","deployments_url":"https://api.github.com/repos/projectkudu/SimpleWAWS/deployments","created_at":"2015-02-03T19:56:25Z","updated_at":"2016-06-06T00:38:39Z","pushed_at":"2016-08-25T21:54:46Z","git_url":"git://github.com/projectkudu/SimpleWAWS.git","ssh_url":"git@github.com:projectkudu/SimpleWAWS.git","clone_url":"https://github.com/projectkudu/SimpleWAWS.git","svn_url":"https://github.com/projectkudu/SimpleWAWS","homepage":"https://tryAppService.azure.com","size":4902,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34"},"html":{"href":"https://github.com/projectkudu/SimpleWAWS/pull/34"},"issue":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/34"},"comments":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/projectkudu/SimpleWAWS/statuses/7906f62054ebbac3192c7e4c0216f20664cdf8d5"}}}}
{"actor":{"display_login":"fashaikh"}}