in Aliyun/Log/Models/MachineGroup.php [102:131]
public function setFromArray($resp){
$groupAttribute = null;
if(isset($resp['groupAttribute'])){
$groupAttributeArr = $resp['groupAttribute'];
$groupAttribute = new Aliyun_Log_Models_MachineGroup_GroupAttribute();
if(isset($groupAttributeArr['externalName']))
$groupAttribute->externalName = $groupAttributeArr['externalName'];
if(isset($groupAttributeArr['groupTopic']))
$groupAttribute->groupTopic = $groupAttributeArr['groupTopic'];
}
$groupName = ($resp['groupName']!==null)?$resp['groupName']:null;
$groupType = ($resp['groupType']!==null)?$resp['groupType']:null;
$machineList = array();
if(isset($resp['machineList']) && is_array($resp['machineList']) && count($resp['machineList'])>0){
foreach($resp['machineList'] as $value){
$machine = new Aliyun_Log_Models_Machine();
$machine->setFromArray($value);
$machineList[] = $machine;
}
}
$createTime = ($resp['createTime']!==null)?$resp['createTime']:null;
$lastModifyTime = ($resp['lastModifyTime']!==null)?$resp['lastModifyTime']:null;
$this->setGroupName($groupName);
$this->setGroupType($groupType);
$this->setGroupAttribute($groupAttribute);
$this->setMachineList($machineList);
$this->setCreateTime($createTime);
$this->setLastModifyTime($lastModifyTime);
}