12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.authorization.rbac.role.name.update request
- *
- * @author auto create
- * @since 1.0, 2021.01.20
- */
- class OapiAuthorizationRbacRoleNameUpdateRequest
- {
- /**
- * 微应用agenId,需要联系权限平台配置
- **/
- private $agentId;
-
- /**
- * 管理组id
- **/
- private $openRoleId;
-
- /**
- * 管理组名称
- **/
- private $roleName;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- $this->apiParas["agent_id"] = $agentId;
- }
- public function getAgentId()
- {
- return $this->agentId;
- }
- public function setOpenRoleId($openRoleId)
- {
- $this->openRoleId = $openRoleId;
- $this->apiParas["open_role_id"] = $openRoleId;
- }
- public function getOpenRoleId()
- {
- return $this->openRoleId;
- }
- public function setRoleName($roleName)
- {
- $this->roleName = $roleName;
- $this->apiParas["role_name"] = $roleName;
- }
- public function getRoleName()
- {
- return $this->roleName;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.authorization.rbac.role.name.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->agentId,"agentId");
- RequestCheckUtil::checkNotNull($this->openRoleId,"openRoleId");
- RequestCheckUtil::checkNotNull($this->roleName,"roleName");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|