|
6 | 6 |
|
7 | 7 | use Algolia\AlgoliaSearch\Algolia;
|
8 | 8 | use Algolia\AlgoliaSearch\Configuration\IngestionConfig;
|
| 9 | +use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationCreate; |
| 10 | +use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationSearch; |
| 11 | +use Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationUpdate; |
| 12 | +use Algolia\AlgoliaSearch\Model\Ingestion\DestinationCreate; |
| 13 | +use Algolia\AlgoliaSearch\Model\Ingestion\DestinationSearch; |
| 14 | +use Algolia\AlgoliaSearch\Model\Ingestion\DestinationUpdate; |
| 15 | +use Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate; |
| 16 | +use Algolia\AlgoliaSearch\Model\Ingestion\SourceSearch; |
| 17 | +use Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate; |
| 18 | +use Algolia\AlgoliaSearch\Model\Ingestion\TaskCreate; |
| 19 | +use Algolia\AlgoliaSearch\Model\Ingestion\TaskSearch; |
| 20 | +use Algolia\AlgoliaSearch\Model\Ingestion\TaskUpdate; |
| 21 | +use Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate; |
| 22 | +use Algolia\AlgoliaSearch\Model\Ingestion\TransformationSearch; |
| 23 | +use Algolia\AlgoliaSearch\Model\Ingestion\TransformationTry; |
9 | 24 | use Algolia\AlgoliaSearch\ObjectSerializer;
|
10 | 25 | use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
|
11 | 26 | use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
|
12 | 27 | use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
|
| 28 | +use GuzzleHttp\Psr7\Query; |
13 | 29 |
|
14 | 30 | /**
|
15 | 31 | * IngestionClient Class Doc Comment.
|
@@ -110,7 +126,7 @@ public function getClientConfig()
|
110 | 126 | * - $authenticationCreate['platform'] => (array)
|
111 | 127 | * - $authenticationCreate['input'] => (array) (required)
|
112 | 128 | *
|
113 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationCreate |
| 129 | + * @see AuthenticationCreate |
114 | 130 | *
|
115 | 131 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
116 | 132 | *
|
@@ -147,7 +163,7 @@ public function createAuthentication($authenticationCreate, $requestOptions = []
|
147 | 163 | * - $destinationCreate['input'] => (array) (required)
|
148 | 164 | * - $destinationCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
149 | 165 | *
|
150 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationCreate |
| 166 | + * @see DestinationCreate |
151 | 167 | *
|
152 | 168 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
153 | 169 | *
|
@@ -184,7 +200,7 @@ public function createDestination($destinationCreate, $requestOptions = [])
|
184 | 200 | * - $sourceCreate['input'] => (array) (required)
|
185 | 201 | * - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
186 | 202 | *
|
187 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate |
| 203 | + * @see SourceCreate |
188 | 204 | *
|
189 | 205 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
190 | 206 | *
|
@@ -220,7 +236,7 @@ public function createSource($sourceCreate, $requestOptions = [])
|
220 | 236 | * - $taskCreate['input'] => (array)
|
221 | 237 | * - $taskCreate['cursor'] => (string) Date of the last cursor in RFC 3339 format.
|
222 | 238 | *
|
223 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskCreate |
| 239 | + * @see TaskCreate |
224 | 240 | *
|
225 | 241 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
226 | 242 | *
|
@@ -251,7 +267,7 @@ public function createTask($taskCreate, $requestOptions = [])
|
251 | 267 | * - $transformationCreate['name'] => (string) The uniquely identified name of your transformation. (required)
|
252 | 268 | * - $transformationCreate['description'] => (string) A descriptive name for your transformation of what it does. (required)
|
253 | 269 | *
|
254 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate |
| 270 | + * @see TransformationCreate |
255 | 271 | *
|
256 | 272 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
257 | 273 | *
|
@@ -1525,7 +1541,7 @@ public function runTask($taskID, $requestOptions = [])
|
1525 | 1541 | * @param array $authenticationSearch authenticationSearch (required)
|
1526 | 1542 | * - $authenticationSearch['authenticationIDs'] => (array) (required)
|
1527 | 1543 | *
|
1528 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationSearch |
| 1544 | + * @see AuthenticationSearch |
1529 | 1545 | *
|
1530 | 1546 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1531 | 1547 | *
|
@@ -1559,7 +1575,7 @@ public function searchAuthentications($authenticationSearch, $requestOptions = [
|
1559 | 1575 | * @param array $destinationSearch destinationSearch (required)
|
1560 | 1576 | * - $destinationSearch['destinationIDs'] => (array) (required)
|
1561 | 1577 | *
|
1562 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationSearch |
| 1578 | + * @see DestinationSearch |
1563 | 1579 | *
|
1564 | 1580 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1565 | 1581 | *
|
@@ -1593,7 +1609,7 @@ public function searchDestinations($destinationSearch, $requestOptions = [])
|
1593 | 1609 | * @param array $sourceSearch sourceSearch (required)
|
1594 | 1610 | * - $sourceSearch['sourceIDs'] => (array) (required)
|
1595 | 1611 | *
|
1596 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceSearch |
| 1612 | + * @see SourceSearch |
1597 | 1613 | *
|
1598 | 1614 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1599 | 1615 | *
|
@@ -1627,7 +1643,7 @@ public function searchSources($sourceSearch, $requestOptions = [])
|
1627 | 1643 | * @param array $taskSearch taskSearch (required)
|
1628 | 1644 | * - $taskSearch['taskIDs'] => (array) (required)
|
1629 | 1645 | *
|
1630 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskSearch |
| 1646 | + * @see TaskSearch |
1631 | 1647 | *
|
1632 | 1648 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1633 | 1649 | *
|
@@ -1661,7 +1677,7 @@ public function searchTasks($taskSearch, $requestOptions = [])
|
1661 | 1677 | * @param array $transformationSearch transformationSearch (required)
|
1662 | 1678 | * - $transformationSearch['transformationsIDs'] => (array) (required)
|
1663 | 1679 | *
|
1664 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationSearch |
| 1680 | + * @see TransformationSearch |
1665 | 1681 | *
|
1666 | 1682 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1667 | 1683 | *
|
@@ -1735,7 +1751,7 @@ public function triggerDockerSourceDiscover($sourceID, $requestOptions = [])
|
1735 | 1751 | * - $transformationTry['code'] => (string) The source code of the transformation. (required)
|
1736 | 1752 | * - $transformationTry['sampleRecord'] => (array) The record to apply the given code to. (required)
|
1737 | 1753 | *
|
1738 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationTry |
| 1754 | + * @see TransformationTry |
1739 | 1755 | *
|
1740 | 1756 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1741 | 1757 | *
|
@@ -1773,7 +1789,7 @@ public function tryTransformations($transformationTry, $requestOptions = [])
|
1773 | 1789 | * - $authenticationUpdate['platform'] => (array)
|
1774 | 1790 | * - $authenticationUpdate['input'] => (array)
|
1775 | 1791 | *
|
1776 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\AuthenticationUpdate |
| 1792 | + * @see AuthenticationUpdate |
1777 | 1793 | *
|
1778 | 1794 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1779 | 1795 | *
|
@@ -1826,7 +1842,7 @@ public function updateAuthentication($authenticationID, $authenticationUpdate, $
|
1826 | 1842 | * - $destinationUpdate['input'] => (array)
|
1827 | 1843 | * - $destinationUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
1828 | 1844 | *
|
1829 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\DestinationUpdate |
| 1845 | + * @see DestinationUpdate |
1830 | 1846 | *
|
1831 | 1847 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1832 | 1848 | *
|
@@ -1878,7 +1894,7 @@ public function updateDestination($destinationID, $destinationUpdate, $requestOp
|
1878 | 1894 | * - $sourceUpdate['input'] => (array)
|
1879 | 1895 | * - $sourceUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
1880 | 1896 | *
|
1881 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate |
| 1897 | + * @see SourceUpdate |
1882 | 1898 | *
|
1883 | 1899 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1884 | 1900 | *
|
@@ -1927,7 +1943,7 @@ public function updateSource($sourceID, $sourceUpdate, $requestOptions = [])
|
1927 | 1943 | * - $taskUpdate['enabled'] => (bool) Whether the task is enabled.
|
1928 | 1944 | * - $taskUpdate['failureThreshold'] => (int) Maximum accepted percentage of failures for a task run to finish successfully.
|
1929 | 1945 | *
|
1930 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TaskUpdate |
| 1946 | + * @see TaskUpdate |
1931 | 1947 | *
|
1932 | 1948 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1933 | 1949 | *
|
@@ -1974,7 +1990,7 @@ public function updateTask($taskID, $taskUpdate, $requestOptions = [])
|
1974 | 1990 | * - $transformationCreate['name'] => (string) The uniquely identified name of your transformation. (required)
|
1975 | 1991 | * - $transformationCreate['description'] => (string) A descriptive name for your transformation of what it does. (required)
|
1976 | 1992 | *
|
1977 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\TransformationCreate |
| 1993 | + * @see TransformationCreate |
1978 | 1994 | *
|
1979 | 1995 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
1980 | 1996 | *
|
@@ -2026,7 +2042,7 @@ public function updateTransformation($transformationID, $transformationCreate, $
|
2026 | 2042 | * - $sourceCreate['input'] => (array) (required)
|
2027 | 2043 | * - $sourceCreate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
2028 | 2044 | *
|
2029 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceCreate |
| 2045 | + * @see SourceCreate |
2030 | 2046 | *
|
2031 | 2047 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
2032 | 2048 | *
|
@@ -2056,7 +2072,7 @@ public function validateSource($sourceCreate = null, $requestOptions = [])
|
2056 | 2072 | * - $sourceUpdate['input'] => (array)
|
2057 | 2073 | * - $sourceUpdate['authenticationID'] => (string) Universally unique identifier (UUID) of an authentication resource.
|
2058 | 2074 | *
|
2059 |
| - * @see \Algolia\AlgoliaSearch\Model\Ingestion\SourceUpdate |
| 2075 | + * @see SourceUpdate |
2060 | 2076 | *
|
2061 | 2077 | * @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
|
2062 | 2078 | *
|
@@ -2105,7 +2121,7 @@ private function sendRequest($method, $resourcePath, $headers, $queryParameters,
|
2105 | 2121 |
|
2106 | 2122 | $requestOptions['headers'] = array_merge($headers, $requestOptions['headers']);
|
2107 | 2123 | $requestOptions['queryParameters'] = array_merge($queryParameters, $requestOptions['queryParameters']);
|
2108 |
| - $query = \GuzzleHttp\Psr7\Query::build($requestOptions['queryParameters']); |
| 2124 | + $query = Query::build($requestOptions['queryParameters']); |
2109 | 2125 |
|
2110 | 2126 | return $this->api->sendRequest(
|
2111 | 2127 | $method,
|
|
0 commit comments