Skip to content

Commit e1502bb

Browse files
algolia-botmillotp
andcommitted
feat(specs): add the owner attributes to ingestion resources (generated)
algolia/api-clients-automation#4616 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent e751d36 commit e1502bb

File tree

5 files changed

+160
-0
lines changed

5 files changed

+160
-0
lines changed

lib/Model/Ingestion/Authentication.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Authentication extends AbstractModel implements ModelInterface, \ArrayAcce
2626
'type' => '\Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationType',
2727
'name' => 'string',
2828
'platform' => '\Algolia\AlgoliaSearch\Model\Ingestion\Platform',
29+
'owner' => 'string',
2930
'input' => '\Algolia\AlgoliaSearch\Model\Ingestion\AuthInputPartial',
3031
'createdAt' => 'string',
3132
'updatedAt' => 'string',
@@ -41,6 +42,7 @@ class Authentication extends AbstractModel implements ModelInterface, \ArrayAcce
4142
'type' => null,
4243
'name' => null,
4344
'platform' => null,
45+
'owner' => null,
4446
'input' => null,
4547
'createdAt' => null,
4648
'updatedAt' => null,
@@ -57,6 +59,7 @@ class Authentication extends AbstractModel implements ModelInterface, \ArrayAcce
5759
'type' => 'type',
5860
'name' => 'name',
5961
'platform' => 'platform',
62+
'owner' => 'owner',
6063
'input' => 'input',
6164
'createdAt' => 'createdAt',
6265
'updatedAt' => 'updatedAt',
@@ -72,6 +75,7 @@ class Authentication extends AbstractModel implements ModelInterface, \ArrayAcce
7275
'type' => 'setType',
7376
'name' => 'setName',
7477
'platform' => 'setPlatform',
78+
'owner' => 'setOwner',
7579
'input' => 'setInput',
7680
'createdAt' => 'setCreatedAt',
7781
'updatedAt' => 'setUpdatedAt',
@@ -87,6 +91,7 @@ class Authentication extends AbstractModel implements ModelInterface, \ArrayAcce
8791
'type' => 'getType',
8892
'name' => 'getName',
8993
'platform' => 'getPlatform',
94+
'owner' => 'getOwner',
9095
'input' => 'getInput',
9196
'createdAt' => 'getCreatedAt',
9297
'updatedAt' => 'getUpdatedAt',
@@ -118,6 +123,9 @@ public function __construct(?array $data = null)
118123
if (isset($data['platform'])) {
119124
$this->container['platform'] = $data['platform'];
120125
}
126+
if (isset($data['owner'])) {
127+
$this->container['owner'] = $data['owner'];
128+
}
121129
if (isset($data['input'])) {
122130
$this->container['input'] = $data['input'];
123131
}
@@ -315,6 +323,30 @@ public function setPlatform($platform)
315323
return $this;
316324
}
317325

326+
/**
327+
* Gets owner.
328+
*
329+
* @return null|string
330+
*/
331+
public function getOwner()
332+
{
333+
return $this->container['owner'] ?? null;
334+
}
335+
336+
/**
337+
* Sets owner.
338+
*
339+
* @param null|string $owner owner of the resource
340+
*
341+
* @return self
342+
*/
343+
public function setOwner($owner)
344+
{
345+
$this->container['owner'] = $owner;
346+
347+
return $this;
348+
}
349+
318350
/**
319351
* Gets input.
320352
*

lib/Model/Ingestion/Destination.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Destination extends AbstractModel implements ModelInterface, \ArrayAccess,
2525
'destinationID' => 'string',
2626
'type' => '\Algolia\AlgoliaSearch\Model\Ingestion\DestinationType',
2727
'name' => 'string',
28+
'owner' => 'string',
2829
'input' => '\Algolia\AlgoliaSearch\Model\Ingestion\DestinationInput',
2930
'createdAt' => 'string',
3031
'updatedAt' => 'string',
@@ -41,6 +42,7 @@ class Destination extends AbstractModel implements ModelInterface, \ArrayAccess,
4142
'destinationID' => null,
4243
'type' => null,
4344
'name' => null,
45+
'owner' => null,
4446
'input' => null,
4547
'createdAt' => null,
4648
'updatedAt' => null,
@@ -58,6 +60,7 @@ class Destination extends AbstractModel implements ModelInterface, \ArrayAccess,
5860
'destinationID' => 'destinationID',
5961
'type' => 'type',
6062
'name' => 'name',
63+
'owner' => 'owner',
6164
'input' => 'input',
6265
'createdAt' => 'createdAt',
6366
'updatedAt' => 'updatedAt',
@@ -74,6 +77,7 @@ class Destination extends AbstractModel implements ModelInterface, \ArrayAccess,
7477
'destinationID' => 'setDestinationID',
7578
'type' => 'setType',
7679
'name' => 'setName',
80+
'owner' => 'setOwner',
7781
'input' => 'setInput',
7882
'createdAt' => 'setCreatedAt',
7983
'updatedAt' => 'setUpdatedAt',
@@ -90,6 +94,7 @@ class Destination extends AbstractModel implements ModelInterface, \ArrayAccess,
9094
'destinationID' => 'getDestinationID',
9195
'type' => 'getType',
9296
'name' => 'getName',
97+
'owner' => 'getOwner',
9398
'input' => 'getInput',
9499
'createdAt' => 'getCreatedAt',
95100
'updatedAt' => 'getUpdatedAt',
@@ -120,6 +125,9 @@ public function __construct(?array $data = null)
120125
if (isset($data['name'])) {
121126
$this->container['name'] = $data['name'];
122127
}
128+
if (isset($data['owner'])) {
129+
$this->container['owner'] = $data['owner'];
130+
}
123131
if (isset($data['input'])) {
124132
$this->container['input'] = $data['input'];
125133
}
@@ -299,6 +307,30 @@ public function setName($name)
299307
return $this;
300308
}
301309

310+
/**
311+
* Gets owner.
312+
*
313+
* @return null|string
314+
*/
315+
public function getOwner()
316+
{
317+
return $this->container['owner'] ?? null;
318+
}
319+
320+
/**
321+
* Sets owner.
322+
*
323+
* @param null|string $owner owner of the resource
324+
*
325+
* @return self
326+
*/
327+
public function setOwner($owner)
328+
{
329+
$this->container['owner'] = $owner;
330+
331+
return $this;
332+
}
333+
302334
/**
303335
* Gets input.
304336
*

lib/Model/Ingestion/Source.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Source extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
2323
'sourceID' => 'string',
2424
'type' => '\Algolia\AlgoliaSearch\Model\Ingestion\SourceType',
2525
'name' => 'string',
26+
'owner' => 'string',
2627
'input' => '\Algolia\AlgoliaSearch\Model\Ingestion\SourceInput',
2728
'authenticationID' => 'string',
2829
'createdAt' => 'string',
@@ -38,6 +39,7 @@ class Source extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
3839
'sourceID' => null,
3940
'type' => null,
4041
'name' => null,
42+
'owner' => null,
4143
'input' => null,
4244
'authenticationID' => null,
4345
'createdAt' => null,
@@ -54,6 +56,7 @@ class Source extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
5456
'sourceID' => 'sourceID',
5557
'type' => 'type',
5658
'name' => 'name',
59+
'owner' => 'owner',
5760
'input' => 'input',
5861
'authenticationID' => 'authenticationID',
5962
'createdAt' => 'createdAt',
@@ -69,6 +72,7 @@ class Source extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
6972
'sourceID' => 'setSourceID',
7073
'type' => 'setType',
7174
'name' => 'setName',
75+
'owner' => 'setOwner',
7276
'input' => 'setInput',
7377
'authenticationID' => 'setAuthenticationID',
7478
'createdAt' => 'setCreatedAt',
@@ -84,6 +88,7 @@ class Source extends AbstractModel implements ModelInterface, \ArrayAccess, \Jso
8488
'sourceID' => 'getSourceID',
8589
'type' => 'getType',
8690
'name' => 'getName',
91+
'owner' => 'getOwner',
8792
'input' => 'getInput',
8893
'authenticationID' => 'getAuthenticationID',
8994
'createdAt' => 'getCreatedAt',
@@ -113,6 +118,9 @@ public function __construct(?array $data = null)
113118
if (isset($data['name'])) {
114119
$this->container['name'] = $data['name'];
115120
}
121+
if (isset($data['owner'])) {
122+
$this->container['owner'] = $data['owner'];
123+
}
116124
if (isset($data['input'])) {
117125
$this->container['input'] = $data['input'];
118126
}
@@ -286,6 +294,30 @@ public function setName($name)
286294
return $this;
287295
}
288296

297+
/**
298+
* Gets owner.
299+
*
300+
* @return null|string
301+
*/
302+
public function getOwner()
303+
{
304+
return $this->container['owner'] ?? null;
305+
}
306+
307+
/**
308+
* Sets owner.
309+
*
310+
* @param null|string $owner owner of the resource
311+
*
312+
* @return self
313+
*/
314+
public function setOwner($owner)
315+
{
316+
$this->container['owner'] = $owner;
317+
318+
return $this;
319+
}
320+
289321
/**
290322
* Gets input.
291323
*

lib/Model/Ingestion/Task.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Task extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonS
2626
'cron' => 'string',
2727
'lastRun' => 'string',
2828
'nextRun' => 'string',
29+
'owner' => 'string',
2930
'input' => '\Algolia\AlgoliaSearch\Model\Ingestion\TaskInput',
3031
'enabled' => 'bool',
3132
'failureThreshold' => 'int',
@@ -50,6 +51,7 @@ class Task extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonS
5051
'cron' => null,
5152
'lastRun' => null,
5253
'nextRun' => null,
54+
'owner' => null,
5355
'input' => null,
5456
'enabled' => null,
5557
'failureThreshold' => null,
@@ -75,6 +77,7 @@ class Task extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonS
7577
'cron' => 'cron',
7678
'lastRun' => 'lastRun',
7779
'nextRun' => 'nextRun',
80+
'owner' => 'owner',
7881
'input' => 'input',
7982
'enabled' => 'enabled',
8083
'failureThreshold' => 'failureThreshold',
@@ -99,6 +102,7 @@ class Task extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonS
99102
'cron' => 'setCron',
100103
'lastRun' => 'setLastRun',
101104
'nextRun' => 'setNextRun',
105+
'owner' => 'setOwner',
102106
'input' => 'setInput',
103107
'enabled' => 'setEnabled',
104108
'failureThreshold' => 'setFailureThreshold',
@@ -123,6 +127,7 @@ class Task extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonS
123127
'cron' => 'getCron',
124128
'lastRun' => 'getLastRun',
125129
'nextRun' => 'getNextRun',
130+
'owner' => 'getOwner',
126131
'input' => 'getInput',
127132
'enabled' => 'getEnabled',
128133
'failureThreshold' => 'getFailureThreshold',
@@ -167,6 +172,9 @@ public function __construct(?array $data = null)
167172
if (isset($data['nextRun'])) {
168173
$this->container['nextRun'] = $data['nextRun'];
169174
}
175+
if (isset($data['owner'])) {
176+
$this->container['owner'] = $data['owner'];
177+
}
170178
if (isset($data['input'])) {
171179
$this->container['input'] = $data['input'];
172180
}
@@ -433,6 +441,30 @@ public function setNextRun($nextRun)
433441
return $this;
434442
}
435443

444+
/**
445+
* Gets owner.
446+
*
447+
* @return null|string
448+
*/
449+
public function getOwner()
450+
{
451+
return $this->container['owner'] ?? null;
452+
}
453+
454+
/**
455+
* Sets owner.
456+
*
457+
* @param null|string $owner owner of the resource
458+
*
459+
* @return self
460+
*/
461+
public function setOwner($owner)
462+
{
463+
$this->container['owner'] = $owner;
464+
465+
return $this;
466+
}
467+
436468
/**
437469
* Gets input.
438470
*

0 commit comments

Comments
 (0)