ModifyPersonGroupInfoRequest.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Iai\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * ModifyPersonGroupInfo请求参数结构体
  21. *
  22. * @method string getGroupId() 获取人员库ID
  23. * @method void setGroupId(string $GroupId) 设置人员库ID
  24. * @method string getPersonId() 获取人员ID
  25. * @method void setPersonId(string $PersonId) 设置人员ID
  26. * @method array getPersonExDescriptionInfos() 获取需要修改的人员描述字段内容,key-value
  27. * @method void setPersonExDescriptionInfos(array $PersonExDescriptionInfos) 设置需要修改的人员描述字段内容,key-value
  28. */
  29. class ModifyPersonGroupInfoRequest extends AbstractModel
  30. {
  31. /**
  32. * @var string 人员库ID
  33. */
  34. public $GroupId;
  35. /**
  36. * @var string 人员ID
  37. */
  38. public $PersonId;
  39. /**
  40. * @var array 需要修改的人员描述字段内容,key-value
  41. */
  42. public $PersonExDescriptionInfos;
  43. /**
  44. * @param string $GroupId 人员库ID
  45. * @param string $PersonId 人员ID
  46. * @param array $PersonExDescriptionInfos 需要修改的人员描述字段内容,key-value
  47. */
  48. function __construct()
  49. {
  50. }
  51. /**
  52. * For internal only. DO NOT USE IT.
  53. */
  54. public function deserialize($param)
  55. {
  56. if ($param === null) {
  57. return;
  58. }
  59. if (array_key_exists("GroupId",$param) and $param["GroupId"] !== null) {
  60. $this->GroupId = $param["GroupId"];
  61. }
  62. if (array_key_exists("PersonId",$param) and $param["PersonId"] !== null) {
  63. $this->PersonId = $param["PersonId"];
  64. }
  65. if (array_key_exists("PersonExDescriptionInfos",$param) and $param["PersonExDescriptionInfos"] !== null) {
  66. $this->PersonExDescriptionInfos = [];
  67. foreach ($param["PersonExDescriptionInfos"] as $key => $value){
  68. $obj = new PersonExDescriptionInfo();
  69. $obj->deserialize($value);
  70. array_push($this->PersonExDescriptionInfos, $obj);
  71. }
  72. }
  73. }
  74. }