{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xNetworking/issues/19","labels_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/19/comments","events_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/19/events","html_url":"https://github.com/PowerShell/xNetworking/issues/19","id":104759179,"number":19,"title":"Create NetConnectionProfile resource","user":{"login":"tysonjhayes","id":651851,"avatar_url":"https://avatars.githubusercontent.com/u/651851?v=3","gravatar_id":"","url":"https://api.github.com/users/tysonjhayes","html_url":"https://github.com/tysonjhayes","followers_url":"https://api.github.com/users/tysonjhayes/followers","following_url":"https://api.github.com/users/tysonjhayes/following{/other_user}","gists_url":"https://api.github.com/users/tysonjhayes/gists{/gist_id}","starred_url":"https://api.github.com/users/tysonjhayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tysonjhayes/subscriptions","organizations_url":"https://api.github.com/users/tysonjhayes/orgs","repos_url":"https://api.github.com/users/tysonjhayes/repos","events_url":"https://api.github.com/users/tysonjhayes/events{/privacy}","received_events_url":"https://api.github.com/users/tysonjhayes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerShell/xNetworking/labels/discussion","name":"discussion","color":"5319e7"},{"url":"https://api.github.com/repos/PowerShell/xNetworking/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/PowerShell/xNetworking/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T18:54:29Z","updated_at":"2015-09-03T19:15:06Z","closed_at":null,"body":"I'm thinking we should create a NetConnecitonProfile resource. This would allow the management of the NetworkCategories  of Private/Public/Domain etc on the interface level. This would also mean pullign it it out of xIPAddress which would solve #3 by doing this.\r\n\r\nBefore doing this work I wanted to ask the community their thoughts on the design.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/PowerShell/xNetworking/issues/comments/137545908","html_url":"https://github.com/PowerShell/xNetworking/issues/19#issuecomment-137545908","issue_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/19","id":137545908,"user":{"login":"Dan1el42","id":7493263,"avatar_url":"https://avatars.githubusercontent.com/u/7493263?v=3","gravatar_id":"","url":"https://api.github.com/users/Dan1el42","html_url":"https://github.com/Dan1el42","followers_url":"https://api.github.com/users/Dan1el42/followers","following_url":"https://api.github.com/users/Dan1el42/following{/other_user}","gists_url":"https://api.github.com/users/Dan1el42/gists{/gist_id}","starred_url":"https://api.github.com/users/Dan1el42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dan1el42/subscriptions","organizations_url":"https://api.github.com/users/Dan1el42/orgs","repos_url":"https://api.github.com/users/Dan1el42/repos","events_url":"https://api.github.com/users/Dan1el42/events{/privacy}","received_events_url":"https://api.github.com/users/Dan1el42/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T19:15:06Z","updated_at":"2015-09-03T19:15:06Z","body":"Great idea :-). I actually have a draft of an DSC resource call xNetConnectionProfile on my cloud drive.\r\n\r\nThe basic design I would like to propose is:\r\n\r\nGet/Set/Test-TargetResource invoke internal functions Get/Set/Test-NetConnectionProfileInternal which invoke the Get/Set-NetConnectionProfile functions of the PowerShell module included with each OS with some additional logic and verbose logging.\r\n\r\nI think the advantages of the internal functions are easier debugging and testing without the LCM, and the ability to use the internal functions in a future versions of the resource module with a DscResource class instead.\r\n\r\nGet/Set/Test-TargetResource do not need extensive tests because each contains basically one line of code splatting the parameters to the internal functions and returning an object if applicable. The primary testing would be happening on the internal functions with mocks for Get/Set-NetConnectionProfile functions for Unit tests.\r\n\r\nThoughts?\r\n\r\nP.S. I think I can make the time this coming Saturday to complete the resource and submit it as pull request.\r\n\r\nBest,\r\nDaniel"}}