{"action":"created","issue":{"url":"https://api.github.com/repos/devigned/profile-playground/issues/7","repository_url":"https://api.github.com/repos/devigned/profile-playground","labels_url":"https://api.github.com/repos/devigned/profile-playground/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/devigned/profile-playground/issues/7/comments","events_url":"https://api.github.com/repos/devigned/profile-playground/issues/7/events","html_url":"https://github.com/devigned/profile-playground/issues/7","id":235981009,"number":7,"title":"Methods on the Resources rather than the Client","user":{"login":"fearthecowboy","id":133736,"avatar_url":"https://avatars0.githubusercontent.com/u/133736?v=3","gravatar_id":"","url":"https://api.github.com/users/fearthecowboy","html_url":"https://github.com/fearthecowboy","followers_url":"https://api.github.com/users/fearthecowboy/followers","following_url":"https://api.github.com/users/fearthecowboy/following{/other_user}","gists_url":"https://api.github.com/users/fearthecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fearthecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearthecowboy/subscriptions","organizations_url":"https://api.github.com/users/fearthecowboy/orgs","repos_url":"https://api.github.com/users/fearthecowboy/repos","events_url":"https://api.github.com/users/fearthecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/fearthecowboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-14T19:12:11Z","updated_at":"2017-06-15T17:10:39Z","closed_at":null,"body":"A version where we expose operations as methods on resources as opposed to monolithic 'client' methods.\r\n\r\nThat would go a really long way to ensuring that operations are correct for a given type."},"comment":{"url":"https://api.github.com/repos/devigned/profile-playground/issues/comments/308807573","html_url":"https://github.com/devigned/profile-playground/issues/7#issuecomment-308807573","issue_url":"https://api.github.com/repos/devigned/profile-playground/issues/7","id":308807573,"user":{"login":"devigned","id":386473,"avatar_url":"https://avatars3.githubusercontent.com/u/386473?v=3","gravatar_id":"","url":"https://api.github.com/users/devigned","html_url":"https://github.com/devigned","followers_url":"https://api.github.com/users/devigned/followers","following_url":"https://api.github.com/users/devigned/following{/other_user}","gists_url":"https://api.github.com/users/devigned/gists{/gist_id}","starred_url":"https://api.github.com/users/devigned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devigned/subscriptions","organizations_url":"https://api.github.com/users/devigned/orgs","repos_url":"https://api.github.com/users/devigned/repos","events_url":"https://api.github.com/users/devigned/events{/privacy}","received_events_url":"https://api.github.com/users/devigned/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T17:10:39Z","updated_at":"2017-06-15T17:10:39Z","body":"@fearthecowboy do you mean something like this?\r\n\r\n```csharp\r\nvar client = new Client();\r\nvar vm = client.Compute.Models.VirtualMachine(...);\r\nvm.Create();  // makes an ARM request to create the Virtual Machine\r\nvm.Color = Colors.Red;\r\nvm.Update(); // makes an ARM request to update the Virtual Machine\r\n```\r\n\r\nAre you implying the models are stateful? That is, the models understand what properties are dirty and would then be able to persist via a patch only the changed properties?"}}
{"actor":{"display_login":"devigned"}}