code: def set_properties_from_api_repr(self, resource):
          
          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"]
docs: Update specific properties from its API representation.