1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.authorization.rbac.role.resource.update request
- *
- * @author auto create
- * @since 1.0, 2021.01.20
- */
- class OapiAuthorizationRbacRoleResourceUpdateRequest
- {
- /**
- * 微应用agenId,需要联系权限平台配置
- **/
- private $agentId;
-
- /**
- * 授权的资源列表
- **/
- private $openResources;
-
- /**
- * 管理组id
- **/
- private $openRoleId;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->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;
- }
- }
|