示例#1
0
 public function createDevice()
 {
     $request = OCISchemaGroup::GroupAccessDeviceAddRequest14($this->migrator->getDestEnterprise(), $this->migrator->getDestGroup(), $this->device->macAddress, $this->device->deviceType, $this->device->protocol);
     $request[OCIDataTypes::OCI_PARAMS]['macAddress'] = $this->device->macAddress;
     $this->migrator->send($request);
     return $this->migrator->getResponse();
 }
示例#2
0
 public function backupDevice($device = [])
 {
     $request = $this->map($device['deviceDetail'], OCISchemaGroup::GroupAccessDeviceAddRequest14());
     $table = $this->mapTable($device['device'], $request)[0][OCIDataTypes::OCI_PARAMS];
     $command = $this->map($table, $request);
     return ['schema' => 'OCISchemaGroup', 'command' => $command];
 }