public static DedicatedHostGroup GetDedicatedHostGroup(this ArmClient client, ResourceIdentifier id) { return(client.GetClient(() => { DedicatedHostGroup.ValidateResourceId(id); return new DedicatedHostGroup(client, id); } )); }
public static DedicatedHostGroup GetDedicatedHostGroup(this ArmClient armClient, ResourceIdentifier id) { DedicatedHostGroup.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new DedicatedHostGroup(clientOptions, credential, uri, pipeline, id))); }
public static DedicatedHostGroup GetDedicatedHostGroup(this ArmClient armClient, ResourceIdentifier id) { DedicatedHostGroup.ValidateResourceId(id); return(new DedicatedHostGroup(armClient, id)); }