code: public function setResource($resource): ClientJob
      {
          $schema = $this->getApi()->getContainer()->getSchema($resource);
  
          $this->fill([
              'resource_type' => $schema->getResourceType(),
              'resource_id' => $schema->getId($resource),
          ]);
  
          return $this;
      }
docs: Set the resource that the client job relates to.
  
  @param mixed $resource
  @return ClientJob