public function validateForUsage($sourceObject, $propertiesToSkip = array())
 {
     if ($this->isNull('id') && $this->isNull('systemName')) {
         throw new KalturaAPIException(KalturaErrors::PROPERTY_VALIDATION_CANNOT_BE_NULL, $this->getFormattedPropertyNameWithClassName('id') . ' and ' . $this->getFormattedPropertyNameWithClassName('systemName'));
     }
     parent::validateForUsage($sourceObject, $propertiesToSkip);
 }
 public function validateForUsage($sourceObject, $propertiesToSkip = array())
 {
     $this->validatePropertyMinLength('name', 2, !is_null($sourceObject));
     // Allow null in case of update
     if (is_null($sourceObject)) {
         $this->validatePropertyNotNull('type');
     }
     $this->validateNestedObjects();
     parent::validateForUsage($sourceObject, $propertiesToSkip);
 }