public function getRequests(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('statuses' => 'list<statuses_enum>');
     $enums = array('statuses_enum' => AdAsyncRequestStatusesValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/requests', new AdAsyncRequest(), 'EDGE', AdAsyncRequest::getFieldsEnum()->getValues(), 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 AdAsyncRequest(), 'NODE', AdAsyncRequest::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }