Mark Id property of generated client resource with ResourceIdPropertyAttribute.