Update specific properties from its API representation.

def set_properties_from_api_repr(self, resource):
        """Update specific properties from its API representation."""
        self.name = resource.get("name")
        self.number = resource["projectNumber"]
        self.labels = resource.get("labels", {})
        self.status = resource["lifecycleState"]
        if "parent" in resource:
            self.parent = resource["parent"]