Skip to content

Commit 2cfdab1

Browse files
algolia-botstevenMevansshortcuts
committed
feat(specs): abtests stopped at (generated)
algolia/api-clients-automation#5275 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Steven Evans <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d6ce665 commit 2cfdab1

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

lib/Model/Abtesting/ABTest.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
3333
'updatedAt' => 'string',
3434
'createdAt' => 'string',
3535
'endAt' => 'string',
36+
'stoppedAt' => 'string',
3637
'name' => 'string',
3738
'status' => '\Algolia\AlgoliaSearch\Model\Abtesting\Status',
3839
'variants' => '\Algolia\AlgoliaSearch\Model\Abtesting\Variant[]',
@@ -54,6 +55,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
5455
'updatedAt' => null,
5556
'createdAt' => null,
5657
'endAt' => null,
58+
'stoppedAt' => null,
5759
'name' => null,
5860
'status' => null,
5961
'variants' => null,
@@ -76,6 +78,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
7678
'updatedAt' => 'updatedAt',
7779
'createdAt' => 'createdAt',
7880
'endAt' => 'endAt',
81+
'stoppedAt' => 'stoppedAt',
7982
'name' => 'name',
8083
'status' => 'status',
8184
'variants' => 'variants',
@@ -97,6 +100,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
97100
'updatedAt' => 'setUpdatedAt',
98101
'createdAt' => 'setCreatedAt',
99102
'endAt' => 'setEndAt',
103+
'stoppedAt' => 'setStoppedAt',
100104
'name' => 'setName',
101105
'status' => 'setStatus',
102106
'variants' => 'setVariants',
@@ -118,6 +122,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
118122
'updatedAt' => 'getUpdatedAt',
119123
'createdAt' => 'getCreatedAt',
120124
'endAt' => 'getEndAt',
125+
'stoppedAt' => 'getStoppedAt',
121126
'name' => 'getName',
122127
'status' => 'getStatus',
123128
'variants' => 'getVariants',
@@ -165,6 +170,9 @@ public function __construct(?array $data = null)
165170
if (isset($data['endAt'])) {
166171
$this->container['endAt'] = $data['endAt'];
167172
}
173+
if (isset($data['stoppedAt'])) {
174+
$this->container['stoppedAt'] = $data['stoppedAt'];
175+
}
168176
if (isset($data['name'])) {
169177
$this->container['name'] = $data['name'];
170178
}
@@ -491,6 +499,30 @@ public function setEndAt($endAt)
491499
return $this;
492500
}
493501

502+
/**
503+
* Gets stoppedAt.
504+
*
505+
* @return null|string
506+
*/
507+
public function getStoppedAt()
508+
{
509+
return $this->container['stoppedAt'] ?? null;
510+
}
511+
512+
/**
513+
* Sets stoppedAt.
514+
*
515+
* @param null|string $stoppedAt date and time when the A/B test was stopped, in RFC 3339 format
516+
*
517+
* @return self
518+
*/
519+
public function setStoppedAt($stoppedAt)
520+
{
521+
$this->container['stoppedAt'] = $stoppedAt;
522+
523+
return $this;
524+
}
525+
494526
/**
495527
* Gets name.
496528
*

lib/Model/AbtestingV3/ABTest.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
2828
'updatedAt' => 'string',
2929
'createdAt' => 'string',
3030
'endAt' => 'string',
31+
'stoppedAt' => 'string',
3132
'name' => 'string',
3233
'status' => '\Algolia\AlgoliaSearch\Model\AbtestingV3\Status',
3334
'variants' => '\Algolia\AlgoliaSearch\Model\AbtestingV3\Variant[]',
@@ -45,6 +46,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
4546
'updatedAt' => null,
4647
'createdAt' => null,
4748
'endAt' => null,
49+
'stoppedAt' => null,
4850
'name' => null,
4951
'status' => null,
5052
'variants' => null,
@@ -63,6 +65,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
6365
'updatedAt' => 'updatedAt',
6466
'createdAt' => 'createdAt',
6567
'endAt' => 'endAt',
68+
'stoppedAt' => 'stoppedAt',
6669
'name' => 'name',
6770
'status' => 'status',
6871
'variants' => 'variants',
@@ -80,6 +83,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
8083
'updatedAt' => 'setUpdatedAt',
8184
'createdAt' => 'setCreatedAt',
8285
'endAt' => 'setEndAt',
86+
'stoppedAt' => 'setStoppedAt',
8387
'name' => 'setName',
8488
'status' => 'setStatus',
8589
'variants' => 'setVariants',
@@ -97,6 +101,7 @@ class ABTest extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
97101
'updatedAt' => 'getUpdatedAt',
98102
'createdAt' => 'getCreatedAt',
99103
'endAt' => 'getEndAt',
104+
'stoppedAt' => 'getStoppedAt',
100105
'name' => 'getName',
101106
'status' => 'getStatus',
102107
'variants' => 'getVariants',
@@ -130,6 +135,9 @@ public function __construct(?array $data = null)
130135
if (isset($data['endAt'])) {
131136
$this->container['endAt'] = $data['endAt'];
132137
}
138+
if (isset($data['stoppedAt'])) {
139+
$this->container['stoppedAt'] = $data['stoppedAt'];
140+
}
133141
if (isset($data['name'])) {
134142
$this->container['name'] = $data['name'];
135143
}
@@ -339,6 +347,30 @@ public function setEndAt($endAt)
339347
return $this;
340348
}
341349

350+
/**
351+
* Gets stoppedAt.
352+
*
353+
* @return null|string
354+
*/
355+
public function getStoppedAt()
356+
{
357+
return $this->container['stoppedAt'] ?? null;
358+
}
359+
360+
/**
361+
* Sets stoppedAt.
362+
*
363+
* @param null|string $stoppedAt date and time when the A/B test was stopped, in RFC 3339 format
364+
*
365+
* @return self
366+
*/
367+
public function setStoppedAt($stoppedAt)
368+
{
369+
$this->container['stoppedAt'] = $stoppedAt;
370+
371+
return $this;
372+
}
373+
342374
/**
343375
* Gets name.
344376
*

0 commit comments

Comments
 (0)