agentId = $agentId; $this->apiParas["agent_id"] = $agentId; } public function getAgentId() { return $this->agentId; } public function setOpenResources($openResources) { $this->openResources = $openResources; $this->apiParas["open_resources"] = $openResources; } public function getOpenResources() { return $this->openResources; } public function setOpenRoleId($openRoleId) { $this->openRoleId = $openRoleId; $this->apiParas["open_role_id"] = $openRoleId; } public function getOpenRoleId() { return $this->openRoleId; } public function getApiMethodName() { return "dingtalk.oapi.authorization.rbac.role.resource.update"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->agentId,"agentId"); RequestCheckUtil::checkNotNull($this->openResources,"openResources"); RequestCheckUtil::checkMaxListSize($this->openResources,999,"openResources"); RequestCheckUtil::checkNotNull($this->openRoleId,"openRoleId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }