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