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