pub fn validate_endpoint_name(resource_id: &str, name: &str) -> Result<()>
Validates a public endpoint name within a resource.