Skip to content

Commit 610f266

Browse files
fix(specs): updated watchResponse (generated)
algolia/api-clients-automation#4879 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b990e90 commit 610f266

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

lib/Model/Ingestion/WatchResponse.php

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ class WatchResponse extends AbstractModel implements ModelInterface, \ArrayAcces
2121
*/
2222
protected static $modelTypes = [
2323
'runID' => 'string',
24+
'eventID' => 'string',
2425
'data' => 'object[]',
2526
'events' => '\Algolia\AlgoliaSearch\Model\Ingestion\Event[]',
2627
'message' => 'string',
28+
'createdAt' => 'string',
2729
];
2830

2931
/**
@@ -33,9 +35,11 @@ class WatchResponse extends AbstractModel implements ModelInterface, \ArrayAcces
3335
*/
3436
protected static $modelFormats = [
3537
'runID' => null,
38+
'eventID' => null,
3639
'data' => null,
3740
'events' => null,
3841
'message' => null,
42+
'createdAt' => null,
3943
];
4044

4145
/**
@@ -46,9 +50,11 @@ class WatchResponse extends AbstractModel implements ModelInterface, \ArrayAcces
4650
*/
4751
protected static $attributeMap = [
4852
'runID' => 'runID',
53+
'eventID' => 'eventID',
4954
'data' => 'data',
5055
'events' => 'events',
5156
'message' => 'message',
57+
'createdAt' => 'createdAt',
5258
];
5359

5460
/**
@@ -58,9 +64,11 @@ class WatchResponse extends AbstractModel implements ModelInterface, \ArrayAcces
5864
*/
5965
protected static $setters = [
6066
'runID' => 'setRunID',
67+
'eventID' => 'setEventID',
6168
'data' => 'setData',
6269
'events' => 'setEvents',
6370
'message' => 'setMessage',
71+
'createdAt' => 'setCreatedAt',
6472
];
6573

6674
/**
@@ -70,9 +78,11 @@ class WatchResponse extends AbstractModel implements ModelInterface, \ArrayAcces
7078
*/
7179
protected static $getters = [
7280
'runID' => 'getRunID',
81+
'eventID' => 'getEventID',
7382
'data' => 'getData',
7483
'events' => 'getEvents',
7584
'message' => 'getMessage',
85+
'createdAt' => 'getCreatedAt',
7686
];
7787

7888
/**
@@ -92,6 +102,9 @@ public function __construct(?array $data = null)
92102
if (isset($data['runID'])) {
93103
$this->container['runID'] = $data['runID'];
94104
}
105+
if (isset($data['eventID'])) {
106+
$this->container['eventID'] = $data['eventID'];
107+
}
95108
if (isset($data['data'])) {
96109
$this->container['data'] = $data['data'];
97110
}
@@ -101,6 +114,9 @@ public function __construct(?array $data = null)
101114
if (isset($data['message'])) {
102115
$this->container['message'] = $data['message'];
103116
}
117+
if (isset($data['createdAt'])) {
118+
$this->container['createdAt'] = $data['createdAt'];
119+
}
104120
}
105121

106122
/**
@@ -205,6 +221,30 @@ public function setRunID($runID)
205221
return $this;
206222
}
207223

224+
/**
225+
* Gets eventID.
226+
*
227+
* @return null|string
228+
*/
229+
public function getEventID()
230+
{
231+
return $this->container['eventID'] ?? null;
232+
}
233+
234+
/**
235+
* Sets eventID.
236+
*
237+
* @param null|string $eventID universally unique identifier (UUID) of an event
238+
*
239+
* @return self
240+
*/
241+
public function setEventID($eventID)
242+
{
243+
$this->container['eventID'] = $eventID;
244+
245+
return $this;
246+
}
247+
208248
/**
209249
* Gets data.
210250
*
@@ -277,6 +317,30 @@ public function setMessage($message)
277317
return $this;
278318
}
279319

320+
/**
321+
* Gets createdAt.
322+
*
323+
* @return null|string
324+
*/
325+
public function getCreatedAt()
326+
{
327+
return $this->container['createdAt'] ?? null;
328+
}
329+
330+
/**
331+
* Sets createdAt.
332+
*
333+
* @param null|string $createdAt date of creation in RFC 3339 format
334+
*
335+
* @return self
336+
*/
337+
public function setCreatedAt($createdAt)
338+
{
339+
$this->container['createdAt'] = $createdAt;
340+
341+
return $this;
342+
}
343+
280344
/**
281345
* Returns true if offset exists. False otherwise.
282346
*

0 commit comments

Comments
 (0)