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