Skip to content

Commit af1715d

Browse files
feat(specs): push source type (generated)
algolia/api-clients-automation#3600 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 5c0ce7c commit af1715d

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

lib/Api/IngestionClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function createDestination($destinationCreate, $requestOptions = [])
204204
* @param array $sourceCreate (required)
205205
* - $sourceCreate['type'] => (array) (required)
206206
* - $sourceCreate['name'] => (string) Descriptive name of the source. (required)
207-
* - $sourceCreate['input'] => (array) (required)
207+
* - $sourceCreate['input'] => (array)
208208
* - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
209209
*
210210
* @see SourceCreate
@@ -2684,7 +2684,7 @@ public function updateTransformation($transformationID, $transformationCreate, $
26842684
* @param array $sourceCreate (optional)
26852685
* - $sourceCreate['type'] => (array) (required)
26862686
* - $sourceCreate['name'] => (string) Descriptive name of the source. (required)
2687-
* - $sourceCreate['input'] => (array) (required)
2687+
* - $sourceCreate['input'] => (array)
26882688
* - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
26892689
*
26902690
* @see SourceCreate

lib/Model/Ingestion/Source.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ public function listInvalidProperties()
195195
if (!isset($this->container['name']) || null === $this->container['name']) {
196196
$invalidProperties[] = "'name' can't be null";
197197
}
198-
if (!isset($this->container['input']) || null === $this->container['input']) {
199-
$invalidProperties[] = "'input' can't be null";
200-
}
201198
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
202199
$invalidProperties[] = "'createdAt' can't be null";
203200
}
@@ -291,7 +288,7 @@ public function setName($name)
291288
/**
292289
* Gets input.
293290
*
294-
* @return SourceInput
291+
* @return null|SourceInput
295292
*/
296293
public function getInput()
297294
{
@@ -301,7 +298,7 @@ public function getInput()
301298
/**
302299
* Sets input.
303300
*
304-
* @param SourceInput $input input
301+
* @param null|SourceInput $input input
305302
*
306303
* @return self
307304
*/

lib/Model/Ingestion/SourceCreate.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ public function listInvalidProperties()
168168
if (!isset($this->container['name']) || null === $this->container['name']) {
169169
$invalidProperties[] = "'name' can't be null";
170170
}
171-
if (!isset($this->container['input']) || null === $this->container['input']) {
172-
$invalidProperties[] = "'input' can't be null";
173-
}
174171

175172
return $invalidProperties;
176173
}
@@ -237,7 +234,7 @@ public function setName($name)
237234
/**
238235
* Gets input.
239236
*
240-
* @return SourceInput
237+
* @return null|SourceInput
241238
*/
242239
public function getInput()
243240
{
@@ -247,7 +244,7 @@ public function getInput()
247244
/**
248245
* Sets input.
249246
*
250-
* @param SourceInput $input input
247+
* @param null|SourceInput $input input
251248
*
252249
* @return self
253250
*/

lib/Model/Ingestion/SourceType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class SourceType
3232

3333
public const SFCC = 'sfcc';
3434

35+
public const PUSH = 'push';
36+
3537
/**
3638
* Gets allowable values of the enum.
3739
*
@@ -49,6 +51,7 @@ public static function getAllowableEnumValues()
4951
self::JSON,
5052
self::SHOPIFY,
5153
self::SFCC,
54+
self::PUSH,
5255
];
5356
}
5457
}

0 commit comments

Comments
 (0)