devigned / profile-playground

2 stars 1 forks source link

Unclear How related resource types will be modeled in the client #9

Open markcowl opened 7 years ago

markcowl commented 7 years ago

Will VMs and VM ScaleSets be represented as separate operation types on the client? It would be helpful to look at multiple related resource types side by side

devigned commented 7 years ago

Each resource type would be a method group. All the operations for a given resource type would be within a single method group.

markcowl commented 7 years ago

So that means to get at a specific resource version, I would need to instantiate the operatiosn group using the AzureClient. It would be nice to have an easier mechanism for discovery / usage

devigned commented 7 years ago

@markcowl what do you think would make it easier to discover / use. Are you thinking extension methods?

devigned commented 7 years ago

@markcowl I've added a sample of using a specific version (https://github.com/devigned/profile-playground/blob/master/dotnet/samples/SpecificVersionSample.cs).

It might be most clear to add a gist or a PR to illustrate the usage pattern you'd like to expose.