Skip to content

Commit

Permalink
DEV-7942
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Pleintinger <[email protected]>
  • Loading branch information
ChripIX committed Feb 8, 2023
1 parent 5a1b794 commit b9e04e6
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 88 deletions.
4 changes: 2 additions & 2 deletions example/zone/ZoneCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public function create(){
"value" => "198.51.100.1",
//"pref" => 1 // optional
]),
new ResourceRecord([
new ResourceRecord([
"name" => "mail",
"type" => "A",
"value" => "198.51.100.1",
//"pref" => 1 // optional
]),
new ResourceRecord([
new ResourceRecord([
"name" => "",
"type" => "MX",
"value" => "198.51.100.1",
Expand Down
30 changes: 30 additions & 0 deletions src/Model/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Certificate implements ModelInterface, ArrayAccess
'codeSigningType' => '\Domainrobot\Model\CodeSigningType',
'codeSigningProvisioningMethod' => '\Domainrobot\Model\CodeSigningProvisioningMethod',
'codeSigningHardwarePlatform' => '\Domainrobot\Model\CodeSigningHardwarePlatform',
'hardwareInitToken' => 'string',
'certificateType' => '\Domainrobot\Model\CertificateType',
'signatureHashAlgorithm' => '\Domainrobot\Model\SignatureHashAlgorithmConstants',
'expire' => '\DateTime',
Expand Down Expand Up @@ -131,6 +132,7 @@ class Certificate implements ModelInterface, ArrayAccess
'codeSigningType' => null,
'codeSigningProvisioningMethod' => null,
'codeSigningHardwarePlatform' => null,
'hardwareInitToken' => null,
'certificateType' => null,
'signatureHashAlgorithm' => null,
'expire' => 'date-time',
Expand Down Expand Up @@ -206,6 +208,7 @@ public static function swaggerFormats()
'codeSigningType' => 'codeSigningType',
'codeSigningProvisioningMethod' => 'codeSigningProvisioningMethod',
'codeSigningHardwarePlatform' => 'codeSigningHardwarePlatform',
'hardwareInitToken' => 'hardwareInitToken',
'certificateType' => 'certificateType',
'signatureHashAlgorithm' => 'signatureHashAlgorithm',
'expire' => 'expire',
Expand Down Expand Up @@ -260,6 +263,7 @@ public static function swaggerFormats()
'codeSigningType' => 'setCodeSigningType',
'codeSigningProvisioningMethod' => 'setCodeSigningProvisioningMethod',
'codeSigningHardwarePlatform' => 'setCodeSigningHardwarePlatform',
'hardwareInitToken' => 'setHardwareInitToken',
'certificateType' => 'setCertificateType',
'signatureHashAlgorithm' => 'setSignatureHashAlgorithm',
'expire' => 'setExpire',
Expand Down Expand Up @@ -314,6 +318,7 @@ public static function swaggerFormats()
'codeSigningType' => 'getCodeSigningType',
'codeSigningProvisioningMethod' => 'getCodeSigningProvisioningMethod',
'codeSigningHardwarePlatform' => 'getCodeSigningHardwarePlatform',
'hardwareInitToken' => 'getHardwareInitToken',
'certificateType' => 'getCertificateType',
'signatureHashAlgorithm' => 'getSignatureHashAlgorithm',
'expire' => 'getExpire',
Expand Down Expand Up @@ -422,6 +427,7 @@ public function __construct(array $data = null)
$this->container['codeSigningType'] = isset($data['codeSigningType']) ? $this->createData($data['codeSigningType'], 'codeSigningType') : null;
$this->container['codeSigningProvisioningMethod'] = isset($data['codeSigningProvisioningMethod']) ? $this->createData($data['codeSigningProvisioningMethod'], 'codeSigningProvisioningMethod') : null;
$this->container['codeSigningHardwarePlatform'] = isset($data['codeSigningHardwarePlatform']) ? $this->createData($data['codeSigningHardwarePlatform'], 'codeSigningHardwarePlatform') : null;
$this->container['hardwareInitToken'] = isset($data['hardwareInitToken']) ? $this->createData($data['hardwareInitToken'], 'hardwareInitToken') : null;
$this->container['certificateType'] = isset($data['certificateType']) ? $this->createData($data['certificateType'], 'certificateType') : null;
$this->container['signatureHashAlgorithm'] = isset($data['signatureHashAlgorithm']) ? $this->createData($data['signatureHashAlgorithm'], 'signatureHashAlgorithm') : null;
$this->container['expire'] = isset($data['expire']) ? $this->createData($data['expire'], 'expire') : null;
Expand Down Expand Up @@ -1019,6 +1025,30 @@ public function setCodeSigningHardwarePlatform($codeSigningHardwarePlatform)
return $this;
}

/**
* Gets hardwareInitToken
*
* @return string
*/
public function getHardwareInitToken()
{
return $this->container['hardwareInitToken'];
}

/**
* Sets hardwareInitToken
*
* @param string $hardwareInitToken The token for initializing a EV CodeSigning
*
* @return $this
*/
public function setHardwareInitToken($hardwareInitToken)
{
$this->container['hardwareInitToken'] = $hardwareInitToken;

return $this;
}

/**
* Gets certificateType
*
Expand Down
120 changes: 60 additions & 60 deletions src/Model/DomainPremium.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class DomainPremium implements ModelInterface, ArrayAccess
protected static $swaggerTypes = [
'created' => '\DateTime',
'updated' => '\DateTime',
'owner' => '\Domainrobot\Model\BasicUser',
'updater' => '\Domainrobot\Model\BasicUser',
'name' => 'string',
'idn' => 'string',
'priceClass' => 'string',
Expand All @@ -70,6 +68,8 @@ class DomainPremium implements ModelInterface, ArrayAccess
'provider' => 'string',
'configuration' => '\Domainrobot\Model\Configuration',
'metric' => '\Domainrobot\Model\Metric',
'owner' => '\Domainrobot\Model\BasicUser',
'updater' => '\Domainrobot\Model\BasicUser',
'premiumStatus' => '\Domainrobot\Model\PremiumStatusConstants'
];

Expand All @@ -81,8 +81,6 @@ class DomainPremium implements ModelInterface, ArrayAccess
protected static $swaggerFormats = [
'created' => 'date-time',
'updated' => 'date-time',
'owner' => null,
'updater' => null,
'name' => null,
'idn' => null,
'priceClass' => null,
Expand All @@ -92,6 +90,8 @@ class DomainPremium implements ModelInterface, ArrayAccess
'provider' => null,
'configuration' => null,
'metric' => null,
'owner' => null,
'updater' => null,
'premiumStatus' => null
];

Expand Down Expand Up @@ -124,8 +124,6 @@ public static function swaggerFormats()
protected static $attributeMap = [
'created' => 'created',
'updated' => 'updated',
'owner' => 'owner',
'updater' => 'updater',
'name' => 'name',
'idn' => 'idn',
'priceClass' => 'priceClass',
Expand All @@ -135,6 +133,8 @@ public static function swaggerFormats()
'provider' => 'provider',
'configuration' => 'configuration',
'metric' => 'metric',
'owner' => 'owner',
'updater' => 'updater',
'premiumStatus' => 'premiumStatus'
];

Expand All @@ -146,8 +146,6 @@ public static function swaggerFormats()
protected static $setters = [
'created' => 'setCreated',
'updated' => 'setUpdated',
'owner' => 'setOwner',
'updater' => 'setUpdater',
'name' => 'setName',
'idn' => 'setIdn',
'priceClass' => 'setPriceClass',
Expand All @@ -157,6 +155,8 @@ public static function swaggerFormats()
'provider' => 'setProvider',
'configuration' => 'setConfiguration',
'metric' => 'setMetric',
'owner' => 'setOwner',
'updater' => 'setUpdater',
'premiumStatus' => 'setPremiumStatus'
];

Expand All @@ -168,8 +168,6 @@ public static function swaggerFormats()
protected static $getters = [
'created' => 'getCreated',
'updated' => 'getUpdated',
'owner' => 'getOwner',
'updater' => 'getUpdater',
'name' => 'getName',
'idn' => 'getIdn',
'priceClass' => 'getPriceClass',
Expand All @@ -179,6 +177,8 @@ public static function swaggerFormats()
'provider' => 'getProvider',
'configuration' => 'getConfiguration',
'metric' => 'getMetric',
'owner' => 'getOwner',
'updater' => 'getUpdater',
'premiumStatus' => 'getPremiumStatus'
];

Expand Down Expand Up @@ -244,8 +244,6 @@ 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['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null;
$this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null;
$this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null;
$this->container['idn'] = isset($data['idn']) ? $this->createData($data['idn'], 'idn') : null;
$this->container['priceClass'] = isset($data['priceClass']) ? $this->createData($data['priceClass'], 'priceClass') : null;
Expand All @@ -255,6 +253,8 @@ public function __construct(array $data = null)
$this->container['provider'] = isset($data['provider']) ? $this->createData($data['provider'], 'provider') : null;
$this->container['configuration'] = isset($data['configuration']) ? $this->createData($data['configuration'], 'configuration') : null;
$this->container['metric'] = isset($data['metric']) ? $this->createData($data['metric'], 'metric') : 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['premiumStatus'] = isset($data['premiumStatus']) ? $this->createData($data['premiumStatus'], 'premiumStatus') : null;
}

Expand Down Expand Up @@ -394,54 +394,6 @@ public function setUpdated($updated)
return $this;
}

/**
* Gets owner
*
* @return \Domainrobot\Model\BasicUser
*/
public function getOwner()
{
return $this->container['owner'];
}

/**
* Sets owner
*
* @param \Domainrobot\Model\BasicUser $owner The object owner.
*
* @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 User who performed the last update.
*
* @return $this
*/
public function setUpdater($updater)
{
$this->container['updater'] = $updater;

return $this;
}

/**
* Gets name
*
Expand Down Expand Up @@ -658,6 +610,54 @@ public function setMetric($metric)
return $this;
}

/**
* Gets owner
*
* @return \Domainrobot\Model\BasicUser
*/
public function getOwner()
{
return $this->container['owner'];
}

/**
* Sets owner
*
* @param \Domainrobot\Model\BasicUser $owner The object owner.
*
* @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 User who performed the last update.
*
* @return $this
*/
public function setUpdater($updater)
{
$this->container['updater'] = $updater;

return $this;
}

/**
* Gets premiumStatus
*
Expand Down
16 changes: 16 additions & 0 deletions src/Model/OTPAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,14 @@ public function listInvalidProperties()
if ($this->container['digits'] === null) {
$invalidProperties[] = "'digits' can't be null";
}
if (($this->container['digits'] > 8)) {
$invalidProperties[] = "invalid value for 'digits', must be smaller than or equal to 8.";
}

if (($this->container['digits'] < 6)) {
$invalidProperties[] = "invalid value for 'digits', must be bigger than or equal to 6.";
}

return $invalidProperties;
}

Expand Down Expand Up @@ -534,6 +542,14 @@ public function getDigits()
*/
public function setDigits($digits)
{

if (($digits > 8)) {
throw new \InvalidArgumentException('invalid value for $digits when calling OTPAuth., must be smaller than or equal to 8.');
}
if (($digits < 6)) {
throw new \InvalidArgumentException('invalid value for $digits when calling OTPAuth., must be bigger than or equal to 6.');
}

$this->container['digits'] = $digits;

return $this;
Expand Down
Loading

0 comments on commit b9e04e6

Please sign in to comment.