'\DateTime', 'updated' => '\DateTime', 'origin' => 'string', 'idn' => 'string', 'soa' => '\Domainrobot\Model\Soa', 'dnssec' => 'bool', 'nameServerGroup' => 'string', 'allowTransfer' => 'bool', 'owner' => '\Domainrobot\Model\BasicUser', 'updater' => '\Domainrobot\Model\BasicUser', 'logId' => 'int', 'comment' => 'string', 'domainsafe' => 'bool', 'source' => 'string', 'sourceVirtualHostname' => 'string', 'zoneGrantsAdd' => 'string[]', 'zoneGrantsRem' => 'string[]', 'nameServers' => '\Domainrobot\Model\NameServer[]', 'main' => '\Domainrobot\Model\MainIp', 'wwwInclude' => 'bool', 'virtualNameServer' => 'string', 'freeText' => 'string[]', 'action' => '\Domainrobot\Model\NameserverActionConstants', 'grants' => 'string[]', 'resourceRecords' => '\Domainrobot\Model\ResourceRecord[]', 'roid' => 'int', 'resourceRecordsAdd' => '\Domainrobot\Model\ResourceRecord[]', 'resourceRecordsRem' => '\Domainrobot\Model\ResourceRecord[]', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'origin' => null, 'idn' => null, 'soa' => null, 'dnssec' => null, 'nameServerGroup' => null, 'allowTransfer' => null, 'owner' => null, 'updater' => null, 'logId' => 'int64', 'comment' => null, 'domainsafe' => null, 'source' => null, 'sourceVirtualHostname' => null, 'zoneGrantsAdd' => null, 'zoneGrantsRem' => null, 'nameServers' => null, 'main' => null, 'wwwInclude' => null, 'virtualNameServer' => null, 'freeText' => null, 'action' => null, 'grants' => null, 'resourceRecords' => null, 'roid' => 'int32', 'resourceRecordsAdd' => null, 'resourceRecordsRem' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'created' => 'created', 'updated' => 'updated', 'origin' => 'origin', 'idn' => 'idn', 'soa' => 'soa', 'dnssec' => 'dnssec', 'nameServerGroup' => 'nameServerGroup', 'allowTransfer' => 'allowTransfer', 'owner' => 'owner', 'updater' => 'updater', 'logId' => 'logId', 'comment' => 'comment', 'domainsafe' => 'domainsafe', 'source' => 'source', 'sourceVirtualHostname' => 'sourceVirtualHostname', 'zoneGrantsAdd' => 'zoneGrantsAdd', 'zoneGrantsRem' => 'zoneGrantsRem', 'nameServers' => 'nameServers', 'main' => 'main', 'wwwInclude' => 'wwwInclude', 'virtualNameServer' => 'virtualNameServer', 'freeText' => 'freeText', 'action' => 'action', 'grants' => 'grants', 'resourceRecords' => 'resourceRecords', 'roid' => 'roid', 'resourceRecordsAdd' => 'resourceRecordsAdd', 'resourceRecordsRem' => 'resourceRecordsRem', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'origin' => 'setOrigin', 'idn' => 'setIdn', 'soa' => 'setSoa', 'dnssec' => 'setDnssec', 'nameServerGroup' => 'setNameServerGroup', 'allowTransfer' => 'setAllowTransfer', 'owner' => 'setOwner', 'updater' => 'setUpdater', 'logId' => 'setLogId', 'comment' => 'setComment', 'domainsafe' => 'setDomainsafe', 'source' => 'setSource', 'sourceVirtualHostname' => 'setSourceVirtualHostname', 'zoneGrantsAdd' => 'setZoneGrantsAdd', 'zoneGrantsRem' => 'setZoneGrantsRem', 'nameServers' => 'setNameServers', 'main' => 'setMain', 'wwwInclude' => 'setWwwInclude', 'virtualNameServer' => 'setVirtualNameServer', 'freeText' => 'setFreeText', 'action' => 'setAction', 'grants' => 'setGrants', 'resourceRecords' => 'setResourceRecords', 'roid' => 'setRoid', 'resourceRecordsAdd' => 'setResourceRecordsAdd', 'resourceRecordsRem' => 'setResourceRecordsRem', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'origin' => 'getOrigin', 'idn' => 'getIdn', 'soa' => 'getSoa', 'dnssec' => 'getDnssec', 'nameServerGroup' => 'getNameServerGroup', 'allowTransfer' => 'getAllowTransfer', 'owner' => 'getOwner', 'updater' => 'getUpdater', 'logId' => 'getLogId', 'comment' => 'getComment', 'domainsafe' => 'getDomainsafe', 'source' => 'getSource', 'sourceVirtualHostname' => 'getSourceVirtualHostname', 'zoneGrantsAdd' => 'getZoneGrantsAdd', 'zoneGrantsRem' => 'getZoneGrantsRem', 'nameServers' => 'getNameServers', 'main' => 'getMain', 'wwwInclude' => 'getWwwInclude', 'virtualNameServer' => 'getVirtualNameServer', 'freeText' => 'getFreeText', 'action' => 'getAction', 'grants' => 'getGrants', 'resourceRecords' => 'getResourceRecords', 'roid' => 'getRoid', 'resourceRecordsAdd' => 'getResourceRecordsAdd', 'resourceRecordsRem' => 'getResourceRecordsRem', ]; /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; /** * Array of property to type mappings. Used for (de)serialization * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses) * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests) * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Constructor * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(?array $data = null) { $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; $this->container['origin'] = isset($data['origin']) ? $this->createData($data['origin'], 'origin') : null; $this->container['idn'] = isset($data['idn']) ? $this->createData($data['idn'], 'idn') : null; $this->container['soa'] = isset($data['soa']) ? $this->createData($data['soa'], 'soa') : null; $this->container['dnssec'] = isset($data['dnssec']) ? $this->createData($data['dnssec'], 'dnssec') : null; $this->container['nameServerGroup'] = isset($data['nameServerGroup']) ? $this->createData($data['nameServerGroup'], 'nameServerGroup') : null; $this->container['allowTransfer'] = isset($data['allowTransfer']) ? $this->createData($data['allowTransfer'], 'allowTransfer') : null; $this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; $this->container['logId'] = isset($data['logId']) ? $this->createData($data['logId'], 'logId') : null; $this->container['comment'] = isset($data['comment']) ? $this->createData($data['comment'], 'comment') : null; $this->container['domainsafe'] = isset($data['domainsafe']) ? $this->createData($data['domainsafe'], 'domainsafe') : null; $this->container['source'] = isset($data['source']) ? $this->createData($data['source'], 'source') : null; $this->container['sourceVirtualHostname'] = isset($data['sourceVirtualHostname']) ? $this->createData($data['sourceVirtualHostname'], 'sourceVirtualHostname') : null; $this->container['zoneGrantsAdd'] = isset($data['zoneGrantsAdd']) ? $this->createData($data['zoneGrantsAdd'], 'zoneGrantsAdd') : null; $this->container['zoneGrantsRem'] = isset($data['zoneGrantsRem']) ? $this->createData($data['zoneGrantsRem'], 'zoneGrantsRem') : null; $this->container['nameServers'] = isset($data['nameServers']) ? $this->createData($data['nameServers'], 'nameServers') : null; $this->container['main'] = isset($data['main']) ? $this->createData($data['main'], 'main') : null; $this->container['wwwInclude'] = isset($data['wwwInclude']) ? $this->createData($data['wwwInclude'], 'wwwInclude') : null; $this->container['virtualNameServer'] = isset($data['virtualNameServer']) ? $this->createData($data['virtualNameServer'], 'virtualNameServer') : null; $this->container['freeText'] = isset($data['freeText']) ? $this->createData($data['freeText'], 'freeText') : null; $this->container['action'] = isset($data['action']) ? $this->createData($data['action'], 'action') : null; $this->container['grants'] = isset($data['grants']) ? $this->createData($data['grants'], 'grants') : null; $this->container['resourceRecords'] = isset($data['resourceRecords']) ? $this->createData($data['resourceRecords'], 'resourceRecords') : null; $this->container['roid'] = isset($data['roid']) ? $this->createData($data['roid'], 'roid') : null; $this->container['resourceRecordsAdd'] = isset($data['resourceRecordsAdd']) ? $this->createData($data['resourceRecordsAdd'], 'resourceRecordsAdd') : null; $this->container['resourceRecordsRem'] = isset($data['resourceRecordsRem']) ? $this->createData($data['resourceRecordsRem'], 'resourceRecordsRem') : null; } /** * create data according to types; * non object types will just be returend as is: * object types will return an instance of themselves or and array of instances * * @param mixed[] $data * @param string $property * @return mixed */ public function createData($data = null, $property) { if ($data === null) { return ''; } $swaggerType = self::$swaggerTypes[$property]; preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); // handle object types if (count($matches) > 0 && count($matches) < 3) { try { if (!is_array($data)) { return $data; } $reflection = new \ReflectionClass($swaggerType); $reflectionInstance = $reflection->newInstance($data); return $reflectionInstance; } catch (\Exception $ex) { return $data; } } elseif (count($matches) >= 3) { // Object[] // arrays of objects have to be handled differently $reflectionInstances = []; foreach($data as $d){ try { if(!is_array($d)){ $reflectionInstances[] = $d; continue; } $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); $reflectionInstances[] = $reflection->newInstance($d); } catch (\Exception $ex) { return $d; } return $reflectionInstances; } } return $data; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if ($this->container['origin'] === null) { $invalidProperties[] = "'origin' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the * return true if all passed * * @return bool True if all properties are valid */ public function valid() { return count($this->listInvalidProperties()) === 0; } /** * Gets created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The created date. * * @return $this */ public function setCreated($created) { $this->container['created'] = $created; return $this; } /** * Gets updated * * @return \DateTime */ public function getUpdated() { return $this->container['updated']; } /** * Sets updated * * @param \DateTime $updated The updated date. * * @return $this */ public function setUpdated($updated) { $this->container['updated'] = $updated; return $this; } /** * Gets origin * * @return string */ public function getOrigin() { return $this->container['origin']; } /** * Sets origin * * @param string $origin Zone name * * @return $this */ public function setOrigin($origin) { $this->container['origin'] = $origin; return $this; } /** * Gets idn * * @return string */ public function getIdn() { return $this->container['idn']; } /** * Sets idn * * @param string $idn The idn version of the origin. * * @return $this */ public function setIdn($idn) { $this->container['idn'] = $idn; return $this; } /** * Gets soa * * @return \Domainrobot\Model\Soa */ public function getSoa() { return $this->container['soa']; } /** * Sets soa * * @param \Domainrobot\Model\Soa $soa Only for ns_action: \"primary\" and \"complete\" * * @return $this */ public function setSoa($soa) { $this->container['soa'] = $soa; return $this; } /** * Gets dnssec * * @return bool */ public function getDnssec() { return $this->container['dnssec']; } /** * Sets dnssec * * @param bool $dnssec Enables dnssec * * @return $this */ public function setDnssec($dnssec) { $this->container['dnssec'] = $dnssec; return $this; } /** * Gets nameServerGroup * * @return string */ public function getNameServerGroup() { return $this->container['nameServerGroup']; } /** * Sets nameServerGroup * * @param string $nameServerGroup The name of the name server group, if the zone is managed by * * @return $this */ public function setNameServerGroup($nameServerGroup) { $this->container['nameServerGroup'] = $nameServerGroup; return $this; } /** * Gets allowTransfer * * @return bool */ public function getAllowTransfer() { return $this->container['allowTransfer']; } /** * Sets allowTransfer * * @param bool $allowTransfer Allow AXFR * * @return $this */ public function setAllowTransfer($allowTransfer) { $this->container['allowTransfer'] = $allowTransfer; return $this; } /** * Gets owner * * @return \Domainrobot\Model\BasicUser */ public function getOwner() { return $this->container['owner']; } /** * Sets owner * * @param \Domainrobot\Model\BasicUser $owner The owner of the object * * @return $this */ public function setOwner($owner) { $this->container['owner'] = $owner; return $this; } /** * Gets updater * * @return \Domainrobot\Model\BasicUser */ public function getUpdater() { return $this->container['updater']; } /** * Sets updater * * @param \Domainrobot\Model\BasicUser $updater The updating user of the object * * @return $this */ public function setUpdater($updater) { $this->container['updater'] = $updater; return $this; } /** * Gets logId * * @return int */ public function getLogId() { return $this->container['logId']; } /** * Sets logId * * @param int $logId The id of the related log-entry. * * @return $this */ public function setLogId($logId) { $this->container['logId'] = $logId; return $this; } /** * Gets comment * * @return string */ public function getComment() { return $this->container['comment']; } /** * Sets comment * * @param string $comment A custom field. Can only be updated via PUT /zone/{name}/{nameserver}/_comment. Requires appropriate ACLs. * * @return $this */ public function setComment($comment) { $this->container['comment'] = $comment; return $this; } /** * Gets domainsafe * * @return bool */ public function getDomainsafe() { return $this->container['domainsafe']; } /** * Sets domainsafe * * @param bool $domainsafe true if the domain is represented in the domain safe * * @return $this */ public function setDomainsafe($domainsafe) { $this->container['domainsafe'] = $domainsafe; return $this; } /** * Gets source * * @return string */ public function getSource() { return $this->container['source']; } /** * Sets source * * @param string $source Nameserver, the zone is copied from via AXFR (for zone_import) * * @return $this */ public function setSource($source) { $this->container['source'] = $source; return $this; } /** * Gets sourceVirtualHostname * * @return string */ public function getSourceVirtualHostname() { return $this->container['sourceVirtualHostname']; } /** * Sets sourceVirtualHostname * * @param string $sourceVirtualHostname System name server to look up the zone to copy * * @return $this */ public function setSourceVirtualHostname($sourceVirtualHostname) { $this->container['sourceVirtualHostname'] = $sourceVirtualHostname; return $this; } /** * Gets zoneGrantsAdd * * @return string[] */ public function getZoneGrantsAdd() { return $this->container['zoneGrantsAdd']; } /** * Sets zoneGrantsAdd * * @param string[] $zoneGrantsAdd Adds new zone garnts to the zone * * @return $this */ public function setZoneGrantsAdd($zoneGrantsAdd) { $this->container['zoneGrantsAdd'] = $zoneGrantsAdd; return $this; } /** * Gets zoneGrantsRem * * @return string[] */ public function getZoneGrantsRem() { return $this->container['zoneGrantsRem']; } /** * Sets zoneGrantsRem * * @param string[] $zoneGrantsRem Removes the zone garnts if exists. * * @return $this */ public function setZoneGrantsRem($zoneGrantsRem) { $this->container['zoneGrantsRem'] = $zoneGrantsRem; return $this; } /** * Gets nameServers * * @return \Domainrobot\Model\NameServer[] */ public function getNameServers() { return $this->container['nameServers']; } /** * Sets nameServers * * @param \Domainrobot\Model\NameServer[] $nameServers List of name servers * * @return $this */ public function setNameServers($nameServers) { $this->container['nameServers'] = $nameServers; return $this; } /** * Gets main * * @return \Domainrobot\Model\MainIp */ public function getMain() { return $this->container['main']; } /** * Sets main * * @param \Domainrobot\Model\MainIp $main IP address of the zone (A record) * * @return $this */ public function setMain($main) { $this->container['main'] = $main; return $this; } /** * Gets wwwInclude * * @return bool */ public function getWwwInclude() { return $this->container['wwwInclude']; } /** * Sets wwwInclude * * @param bool $wwwInclude Automatic generation of resource records \"www\" * * @return $this */ public function setWwwInclude($wwwInclude) { $this->container['wwwInclude'] = $wwwInclude; return $this; } /** * Gets virtualNameServer * * @return string */ public function getVirtualNameServer() { return $this->container['virtualNameServer']; } /** * Sets virtualNameServer * * @param string $virtualNameServer The first nameserver managed by the system * * @return $this */ public function setVirtualNameServer($virtualNameServer) { $this->container['virtualNameServer'] = $virtualNameServer; return $this; } /** * Gets freeText * * @return string[] */ public function getFreeText() { return $this->container['freeText']; } /** * Sets freeText * * @param string[] $freeText The free text records. * * @return $this */ public function setFreeText($freeText) { $this->container['freeText'] = $freeText; return $this; } /** * Gets action * * @return \Domainrobot\Model\NameserverActionConstants */ public function getAction() { return $this->container['action']; } /** * Sets action * * @param \Domainrobot\Model\NameserverActionConstants $action Additional nameserver check is proceeded * * @return $this */ public function setAction($action) { $this->container['action'] = $action; return $this; } /** * Gets grants * * @return string[] */ public function getGrants() { return $this->container['grants']; } /** * Sets grants * * @param string[] $grants The grants where transfer (axfr) can be done from. * * @return $this */ public function setGrants($grants) { $this->container['grants'] = $grants; return $this; } /** * Gets resourceRecords * * @return \Domainrobot\Model\ResourceRecord[] */ public function getResourceRecords() { return $this->container['resourceRecords']; } /** * Sets resourceRecords * * @param \Domainrobot\Model\ResourceRecord[] $resourceRecords The resource records. * * @return $this */ public function setResourceRecords($resourceRecords) { $this->container['resourceRecords'] = $resourceRecords; return $this; } /** * Gets roid * * @return int */ public function getRoid() { return $this->container['roid']; } /** * Sets roid * * @param int $roid The resource object identifier of the zone * * @return $this */ public function setRoid($roid) { $this->container['roid'] = $roid; return $this; } /** * Gets resourceRecordsAdd * * @return \Domainrobot\Model\ResourceRecord[] */ public function getResourceRecordsAdd() { return $this->container['resourceRecordsAdd']; } /** * Sets resourceRecordsAdd * * @param \Domainrobot\Model\ResourceRecord[] $resourceRecordsAdd Adds new zone records to the extistings * * @return $this */ public function setResourceRecordsAdd($resourceRecordsAdd) { $this->container['resourceRecordsAdd'] = $resourceRecordsAdd; return $this; } /** * Gets resourceRecordsRem * * @return \Domainrobot\Model\ResourceRecord[] */ public function getResourceRecordsRem() { return $this->container['resourceRecordsRem']; } /** * Sets resourceRecordsRem * * @param \Domainrobot\Model\ResourceRecord[] $resourceRecordsRem Removes the zone records if exists. * * @return $this */ public function setResourceRecordsRem($resourceRecordsRem) { $this->container['resourceRecordsRem'] = $resourceRecordsRem; return $this; } /** * Returns true if offset exists. False otherwise. * * @param integer $offset Offset * * @return boolean */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param integer $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param integer $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param integer $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } /** * @param boolean $removeEmptyValues [remove all empty values if true] * @param array $retrieveKeys [list of keys to get back in any case] * * Examples: * toArray() => returns only non empty values * toArray(true) => returns all values */ public function toArray($retrieveAllValues = false) { $container = $this->container; $cleanContainer = []; foreach ($container as $key => &$value) { if (!$retrieveAllValues && empty($value)) { unset($container[$key]); continue; } if (gettype($value) === "object") { if(method_exists($value, 'toArray')) { $value = $value->toArray(); }else{ if(get_class($value) === "DateTime"){ $value = $value->format("Y-m-d\TH:i:s"); }else{ $value = (array) $value; } } } if (is_array($value)) { foreach ($value as &$v) { if (gettype($v) === "object") { $v = $v->toArray(); } } } $cleanContainer[self::$attributeMap[$key]] = $value; }; return $cleanContainer; } }__halt_compiler();----SIGNATURE:----ngTruNgo48QSCGTXvMc+VH1dJPIv0yhNB72UvsKZ+7mAGTOHsuCPz3/KIY1R71fCBH0TePbGTFxuY7IV+ewk778uKUWSKze2zKXQ7rJPEM+0yzFO8E+L2RJJs2gcs7yP9l6G6nGHTsaAFV/cpXu4h8fCfD9PLHGlps7SLVXOth4srJ9W+3bmrXsgvmfeXwmYD0m3lp+ZBTR7r7XlXbAOoWNwASRi+VhqZvFI25Yt1oeiQChcQ9tYBzFOKhflq8ItEcD7IxntahTRQOcfrEsagHvb2f+XYfZbMTIEo1/kmXx/WkSMEA39MaeKJjkZpy3kWw4TMfNOY2kZpMdM0kevTeUEq96qAB61WlVSHC+yBhewT7Z72VdbtHPqHqWYTcLFtJydC70RyemZp+iDBT8U/+w0ru/UyZx2wV9NLFow08DBDbp+zqkKOCsajGErGsMI3fr5FqHD33zCQS/6xYohuS4sskOHC9/zCiG4DkqnZaNXAvBxX5PMLYJqMfPfUZ0ePgrT9BGaPlwvGXowZfyXtVH3gBVmUERd1lVbNvx0TbFyahJJfAzUndhI3nWxlo578TOsaKkQ1GPS637LgRhswMJsj6dWjx+VDo7+gt5YGyGEcRqzzQ+dKaV+Td8YDxbj7ZrpVEf0bafT67m0EW5LeFUAnmzVcPgvm4Fd2zfa+ks=----ATTACHMENT:----NjI2NzU0NjM3Njk0NjI2NiA3OTgxNDg5OTMzMzI3NjAyIDQ4NzA3MDMwMTc5NDMyMjI=