Skip to content

Commit b9e04e6

Browse files
committed
DEV-7942
Signed-off-by: Christian Pleintinger <christian.pleintinger@intranetx.com>
1 parent 5a1b794 commit b9e04e6

File tree

7 files changed

+173
-88
lines changed

7 files changed

+173
-88
lines changed

example/zone/ZoneCreate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ public function create(){
5858
"value" => "198.51.100.1",
5959
//"pref" => 1 // optional
6060
]),
61-
new ResourceRecord([
61+
new ResourceRecord([
6262
"name" => "mail",
6363
"type" => "A",
6464
"value" => "198.51.100.1",
6565
//"pref" => 1 // optional
6666
]),
67-
new ResourceRecord([
67+
new ResourceRecord([
6868
"name" => "",
6969
"type" => "MX",
7070
"value" => "198.51.100.1",

src/Model/Certificate.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class Certificate implements ModelInterface, ArrayAccess
7777
'codeSigningType' => '\Domainrobot\Model\CodeSigningType',
7878
'codeSigningProvisioningMethod' => '\Domainrobot\Model\CodeSigningProvisioningMethod',
7979
'codeSigningHardwarePlatform' => '\Domainrobot\Model\CodeSigningHardwarePlatform',
80+
'hardwareInitToken' => 'string',
8081
'certificateType' => '\Domainrobot\Model\CertificateType',
8182
'signatureHashAlgorithm' => '\Domainrobot\Model\SignatureHashAlgorithmConstants',
8283
'expire' => '\DateTime',
@@ -131,6 +132,7 @@ class Certificate implements ModelInterface, ArrayAccess
131132
'codeSigningType' => null,
132133
'codeSigningProvisioningMethod' => null,
133134
'codeSigningHardwarePlatform' => null,
135+
'hardwareInitToken' => null,
134136
'certificateType' => null,
135137
'signatureHashAlgorithm' => null,
136138
'expire' => 'date-time',
@@ -206,6 +208,7 @@ public static function swaggerFormats()
206208
'codeSigningType' => 'codeSigningType',
207209
'codeSigningProvisioningMethod' => 'codeSigningProvisioningMethod',
208210
'codeSigningHardwarePlatform' => 'codeSigningHardwarePlatform',
211+
'hardwareInitToken' => 'hardwareInitToken',
209212
'certificateType' => 'certificateType',
210213
'signatureHashAlgorithm' => 'signatureHashAlgorithm',
211214
'expire' => 'expire',
@@ -260,6 +263,7 @@ public static function swaggerFormats()
260263
'codeSigningType' => 'setCodeSigningType',
261264
'codeSigningProvisioningMethod' => 'setCodeSigningProvisioningMethod',
262265
'codeSigningHardwarePlatform' => 'setCodeSigningHardwarePlatform',
266+
'hardwareInitToken' => 'setHardwareInitToken',
263267
'certificateType' => 'setCertificateType',
264268
'signatureHashAlgorithm' => 'setSignatureHashAlgorithm',
265269
'expire' => 'setExpire',
@@ -314,6 +318,7 @@ public static function swaggerFormats()
314318
'codeSigningType' => 'getCodeSigningType',
315319
'codeSigningProvisioningMethod' => 'getCodeSigningProvisioningMethod',
316320
'codeSigningHardwarePlatform' => 'getCodeSigningHardwarePlatform',
321+
'hardwareInitToken' => 'getHardwareInitToken',
317322
'certificateType' => 'getCertificateType',
318323
'signatureHashAlgorithm' => 'getSignatureHashAlgorithm',
319324
'expire' => 'getExpire',
@@ -422,6 +427,7 @@ public function __construct(array $data = null)
422427
$this->container['codeSigningType'] = isset($data['codeSigningType']) ? $this->createData($data['codeSigningType'], 'codeSigningType') : null;
423428
$this->container['codeSigningProvisioningMethod'] = isset($data['codeSigningProvisioningMethod']) ? $this->createData($data['codeSigningProvisioningMethod'], 'codeSigningProvisioningMethod') : null;
424429
$this->container['codeSigningHardwarePlatform'] = isset($data['codeSigningHardwarePlatform']) ? $this->createData($data['codeSigningHardwarePlatform'], 'codeSigningHardwarePlatform') : null;
430+
$this->container['hardwareInitToken'] = isset($data['hardwareInitToken']) ? $this->createData($data['hardwareInitToken'], 'hardwareInitToken') : null;
425431
$this->container['certificateType'] = isset($data['certificateType']) ? $this->createData($data['certificateType'], 'certificateType') : null;
426432
$this->container['signatureHashAlgorithm'] = isset($data['signatureHashAlgorithm']) ? $this->createData($data['signatureHashAlgorithm'], 'signatureHashAlgorithm') : null;
427433
$this->container['expire'] = isset($data['expire']) ? $this->createData($data['expire'], 'expire') : null;
@@ -1019,6 +1025,30 @@ public function setCodeSigningHardwarePlatform($codeSigningHardwarePlatform)
10191025
return $this;
10201026
}
10211027

1028+
/**
1029+
* Gets hardwareInitToken
1030+
*
1031+
* @return string
1032+
*/
1033+
public function getHardwareInitToken()
1034+
{
1035+
return $this->container['hardwareInitToken'];
1036+
}
1037+
1038+
/**
1039+
* Sets hardwareInitToken
1040+
*
1041+
* @param string $hardwareInitToken The token for initializing a EV CodeSigning
1042+
*
1043+
* @return $this
1044+
*/
1045+
public function setHardwareInitToken($hardwareInitToken)
1046+
{
1047+
$this->container['hardwareInitToken'] = $hardwareInitToken;
1048+
1049+
return $this;
1050+
}
1051+
10221052
/**
10231053
* Gets certificateType
10241054
*

src/Model/DomainPremium.php

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ class DomainPremium implements ModelInterface, ArrayAccess
5959
protected static $swaggerTypes = [
6060
'created' => '\DateTime',
6161
'updated' => '\DateTime',
62-
'owner' => '\Domainrobot\Model\BasicUser',
63-
'updater' => '\Domainrobot\Model\BasicUser',
6462
'name' => 'string',
6563
'idn' => 'string',
6664
'priceClass' => 'string',
@@ -70,6 +68,8 @@ class DomainPremium implements ModelInterface, ArrayAccess
7068
'provider' => 'string',
7169
'configuration' => '\Domainrobot\Model\Configuration',
7270
'metric' => '\Domainrobot\Model\Metric',
71+
'owner' => '\Domainrobot\Model\BasicUser',
72+
'updater' => '\Domainrobot\Model\BasicUser',
7373
'premiumStatus' => '\Domainrobot\Model\PremiumStatusConstants'
7474
];
7575

@@ -81,8 +81,6 @@ class DomainPremium implements ModelInterface, ArrayAccess
8181
protected static $swaggerFormats = [
8282
'created' => 'date-time',
8383
'updated' => 'date-time',
84-
'owner' => null,
85-
'updater' => null,
8684
'name' => null,
8785
'idn' => null,
8886
'priceClass' => null,
@@ -92,6 +90,8 @@ class DomainPremium implements ModelInterface, ArrayAccess
9290
'provider' => null,
9391
'configuration' => null,
9492
'metric' => null,
93+
'owner' => null,
94+
'updater' => null,
9595
'premiumStatus' => null
9696
];
9797

@@ -124,8 +124,6 @@ public static function swaggerFormats()
124124
protected static $attributeMap = [
125125
'created' => 'created',
126126
'updated' => 'updated',
127-
'owner' => 'owner',
128-
'updater' => 'updater',
129127
'name' => 'name',
130128
'idn' => 'idn',
131129
'priceClass' => 'priceClass',
@@ -135,6 +133,8 @@ public static function swaggerFormats()
135133
'provider' => 'provider',
136134
'configuration' => 'configuration',
137135
'metric' => 'metric',
136+
'owner' => 'owner',
137+
'updater' => 'updater',
138138
'premiumStatus' => 'premiumStatus'
139139
];
140140

@@ -146,8 +146,6 @@ public static function swaggerFormats()
146146
protected static $setters = [
147147
'created' => 'setCreated',
148148
'updated' => 'setUpdated',
149-
'owner' => 'setOwner',
150-
'updater' => 'setUpdater',
151149
'name' => 'setName',
152150
'idn' => 'setIdn',
153151
'priceClass' => 'setPriceClass',
@@ -157,6 +155,8 @@ public static function swaggerFormats()
157155
'provider' => 'setProvider',
158156
'configuration' => 'setConfiguration',
159157
'metric' => 'setMetric',
158+
'owner' => 'setOwner',
159+
'updater' => 'setUpdater',
160160
'premiumStatus' => 'setPremiumStatus'
161161
];
162162

@@ -168,8 +168,6 @@ public static function swaggerFormats()
168168
protected static $getters = [
169169
'created' => 'getCreated',
170170
'updated' => 'getUpdated',
171-
'owner' => 'getOwner',
172-
'updater' => 'getUpdater',
173171
'name' => 'getName',
174172
'idn' => 'getIdn',
175173
'priceClass' => 'getPriceClass',
@@ -179,6 +177,8 @@ public static function swaggerFormats()
179177
'provider' => 'getProvider',
180178
'configuration' => 'getConfiguration',
181179
'metric' => 'getMetric',
180+
'owner' => 'getOwner',
181+
'updater' => 'getUpdater',
182182
'premiumStatus' => 'getPremiumStatus'
183183
];
184184

@@ -244,8 +244,6 @@ public function __construct(array $data = null)
244244
{
245245
$this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null;
246246
$this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null;
247-
$this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null;
248-
$this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null;
249247
$this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null;
250248
$this->container['idn'] = isset($data['idn']) ? $this->createData($data['idn'], 'idn') : null;
251249
$this->container['priceClass'] = isset($data['priceClass']) ? $this->createData($data['priceClass'], 'priceClass') : null;
@@ -255,6 +253,8 @@ public function __construct(array $data = null)
255253
$this->container['provider'] = isset($data['provider']) ? $this->createData($data['provider'], 'provider') : null;
256254
$this->container['configuration'] = isset($data['configuration']) ? $this->createData($data['configuration'], 'configuration') : null;
257255
$this->container['metric'] = isset($data['metric']) ? $this->createData($data['metric'], 'metric') : null;
256+
$this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null;
257+
$this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null;
258258
$this->container['premiumStatus'] = isset($data['premiumStatus']) ? $this->createData($data['premiumStatus'], 'premiumStatus') : null;
259259
}
260260

@@ -394,54 +394,6 @@ public function setUpdated($updated)
394394
return $this;
395395
}
396396

397-
/**
398-
* Gets owner
399-
*
400-
* @return \Domainrobot\Model\BasicUser
401-
*/
402-
public function getOwner()
403-
{
404-
return $this->container['owner'];
405-
}
406-
407-
/**
408-
* Sets owner
409-
*
410-
* @param \Domainrobot\Model\BasicUser $owner The object owner.
411-
*
412-
* @return $this
413-
*/
414-
public function setOwner($owner)
415-
{
416-
$this->container['owner'] = $owner;
417-
418-
return $this;
419-
}
420-
421-
/**
422-
* Gets updater
423-
*
424-
* @return \Domainrobot\Model\BasicUser
425-
*/
426-
public function getUpdater()
427-
{
428-
return $this->container['updater'];
429-
}
430-
431-
/**
432-
* Sets updater
433-
*
434-
* @param \Domainrobot\Model\BasicUser $updater User who performed the last update.
435-
*
436-
* @return $this
437-
*/
438-
public function setUpdater($updater)
439-
{
440-
$this->container['updater'] = $updater;
441-
442-
return $this;
443-
}
444-
445397
/**
446398
* Gets name
447399
*
@@ -658,6 +610,54 @@ public function setMetric($metric)
658610
return $this;
659611
}
660612

613+
/**
614+
* Gets owner
615+
*
616+
* @return \Domainrobot\Model\BasicUser
617+
*/
618+
public function getOwner()
619+
{
620+
return $this->container['owner'];
621+
}
622+
623+
/**
624+
* Sets owner
625+
*
626+
* @param \Domainrobot\Model\BasicUser $owner The object owner.
627+
*
628+
* @return $this
629+
*/
630+
public function setOwner($owner)
631+
{
632+
$this->container['owner'] = $owner;
633+
634+
return $this;
635+
}
636+
637+
/**
638+
* Gets updater
639+
*
640+
* @return \Domainrobot\Model\BasicUser
641+
*/
642+
public function getUpdater()
643+
{
644+
return $this->container['updater'];
645+
}
646+
647+
/**
648+
* Sets updater
649+
*
650+
* @param \Domainrobot\Model\BasicUser $updater User who performed the last update.
651+
*
652+
* @return $this
653+
*/
654+
public function setUpdater($updater)
655+
{
656+
$this->container['updater'] = $updater;
657+
658+
return $this;
659+
}
660+
661661
/**
662662
* Gets premiumStatus
663663
*

src/Model/OTPAuth.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ public function listInvalidProperties()
324324
if ($this->container['digits'] === null) {
325325
$invalidProperties[] = "'digits' can't be null";
326326
}
327+
if (($this->container['digits'] > 8)) {
328+
$invalidProperties[] = "invalid value for 'digits', must be smaller than or equal to 8.";
329+
}
330+
331+
if (($this->container['digits'] < 6)) {
332+
$invalidProperties[] = "invalid value for 'digits', must be bigger than or equal to 6.";
333+
}
334+
327335
return $invalidProperties;
328336
}
329337

@@ -534,6 +542,14 @@ public function getDigits()
534542
*/
535543
public function setDigits($digits)
536544
{
545+
546+
if (($digits > 8)) {
547+
throw new \InvalidArgumentException('invalid value for $digits when calling OTPAuth., must be smaller than or equal to 8.');
548+
}
549+
if (($digits < 6)) {
550+
throw new \InvalidArgumentException('invalid value for $digits when calling OTPAuth., must be bigger than or equal to 6.');
551+
}
552+
537553
$this->container['digits'] = $digits;
538554

539555
return $this;

0 commit comments

Comments
 (0)