getValues(); $ref_enums['MonitoringType'] = VideoCopyrightMonitoringTypeValues::getInstance()->getValues(); return $ref_enums; } public function getUpdateRecords(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/update_records', new AbstractCrudObject(), 'EDGE', array(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/', new VideoCopyright(), 'NODE', VideoCopyright::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function updateSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( 'append_excluded_ownership_segments' => 'bool', 'attribution_id' => 'string', 'content_category' => 'content_category_enum', 'excluded_ownership_countries' => 'list', 'excluded_ownership_segments' => 'list', 'is_reference_disabled' => 'bool', 'monitoring_type' => 'monitoring_type_enum', 'ownership_countries' => 'list', 'rule_id' => 'string', 'whitelisted_ids' => 'list', 'whitelisted_ig_user_ids' => 'list', ); $enums = array( 'content_category_enum' => VideoCopyrightContentCategoryValues::getInstance()->getValues(), 'monitoring_type_enum' => VideoCopyrightMonitoringTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new VideoCopyright(), 'NODE', VideoCopyright::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } }