Skip to content

Commit 7de1afa

Browse files
algolia-botraed667
andcommitted
feat(specs): add (optional) _automaticInsights to search result (generated)
algolia/api-clients-automation#3688 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]>
1 parent 833d005 commit 7de1afa

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed

lib/Model/Recommend/RecommendationsResults.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
4444
'serverUsed' => 'string',
4545
'userData' => 'object',
4646
'queryID' => 'string',
47+
'automaticInsights' => 'bool',
4748
'page' => 'int',
4849
'nbHits' => 'int',
4950
'nbPages' => 'int',
@@ -81,6 +82,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
8182
'serverUsed' => null,
8283
'userData' => null,
8384
'queryID' => null,
85+
'automaticInsights' => null,
8486
'page' => null,
8587
'nbHits' => null,
8688
'nbPages' => null,
@@ -119,6 +121,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
119121
'serverUsed' => 'serverUsed',
120122
'userData' => 'userData',
121123
'queryID' => 'queryID',
124+
'automaticInsights' => '_automaticInsights',
122125
'page' => 'page',
123126
'nbHits' => 'nbHits',
124127
'nbPages' => 'nbPages',
@@ -156,6 +159,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
156159
'serverUsed' => 'setServerUsed',
157160
'userData' => 'setUserData',
158161
'queryID' => 'setQueryID',
162+
'automaticInsights' => 'setAutomaticInsights',
159163
'page' => 'setPage',
160164
'nbHits' => 'setNbHits',
161165
'nbPages' => 'setNbPages',
@@ -193,6 +197,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
193197
'serverUsed' => 'getServerUsed',
194198
'userData' => 'getUserData',
195199
'queryID' => 'getQueryID',
200+
'automaticInsights' => 'getAutomaticInsights',
196201
'page' => 'getPage',
197202
'nbHits' => 'getNbHits',
198203
'nbPages' => 'getNbPages',
@@ -286,6 +291,9 @@ public function __construct(?array $data = null)
286291
if (isset($data['queryID'])) {
287292
$this->container['queryID'] = $data['queryID'];
288293
}
294+
if (isset($data['automaticInsights'])) {
295+
$this->container['automaticInsights'] = $data['automaticInsights'];
296+
}
289297
if (isset($data['page'])) {
290298
$this->container['page'] = $data['page'];
291299
}
@@ -1012,6 +1020,30 @@ public function setQueryID($queryID)
10121020
return $this;
10131021
}
10141022

1023+
/**
1024+
* Gets automaticInsights.
1025+
*
1026+
* @return null|bool
1027+
*/
1028+
public function getAutomaticInsights()
1029+
{
1030+
return $this->container['automaticInsights'] ?? null;
1031+
}
1032+
1033+
/**
1034+
* Sets automaticInsights.
1035+
*
1036+
* @param null|bool $automaticInsights whether automatic events collection is enabled for the application
1037+
*
1038+
* @return self
1039+
*/
1040+
public function setAutomaticInsights($automaticInsights)
1041+
{
1042+
$this->container['automaticInsights'] = $automaticInsights;
1043+
1044+
return $this;
1045+
}
1046+
10151047
/**
10161048
* Gets page.
10171049
*

lib/Model/Search/BrowseResponse.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
4444
'serverUsed' => 'string',
4545
'userData' => 'object',
4646
'queryID' => 'string',
47+
'automaticInsights' => 'bool',
4748
'page' => 'int',
4849
'nbHits' => 'int',
4950
'nbPages' => 'int',
@@ -84,6 +85,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
8485
'serverUsed' => null,
8586
'userData' => null,
8687
'queryID' => null,
88+
'automaticInsights' => null,
8789
'page' => null,
8890
'nbHits' => null,
8991
'nbPages' => null,
@@ -125,6 +127,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
125127
'serverUsed' => 'serverUsed',
126128
'userData' => 'userData',
127129
'queryID' => 'queryID',
130+
'automaticInsights' => '_automaticInsights',
128131
'page' => 'page',
129132
'nbHits' => 'nbHits',
130133
'nbPages' => 'nbPages',
@@ -165,6 +168,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
165168
'serverUsed' => 'setServerUsed',
166169
'userData' => 'setUserData',
167170
'queryID' => 'setQueryID',
171+
'automaticInsights' => 'setAutomaticInsights',
168172
'page' => 'setPage',
169173
'nbHits' => 'setNbHits',
170174
'nbPages' => 'setNbPages',
@@ -205,6 +209,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
205209
'serverUsed' => 'getServerUsed',
206210
'userData' => 'getUserData',
207211
'queryID' => 'getQueryID',
212+
'automaticInsights' => 'getAutomaticInsights',
208213
'page' => 'getPage',
209214
'nbHits' => 'getNbHits',
210215
'nbPages' => 'getNbPages',
@@ -301,6 +306,9 @@ public function __construct(?array $data = null)
301306
if (isset($data['queryID'])) {
302307
$this->container['queryID'] = $data['queryID'];
303308
}
309+
if (isset($data['automaticInsights'])) {
310+
$this->container['automaticInsights'] = $data['automaticInsights'];
311+
}
304312
if (isset($data['page'])) {
305313
$this->container['page'] = $data['page'];
306314
}
@@ -1030,6 +1038,30 @@ public function setQueryID($queryID)
10301038
return $this;
10311039
}
10321040

1041+
/**
1042+
* Gets automaticInsights.
1043+
*
1044+
* @return null|bool
1045+
*/
1046+
public function getAutomaticInsights()
1047+
{
1048+
return $this->container['automaticInsights'] ?? null;
1049+
}
1050+
1051+
/**
1052+
* Sets automaticInsights.
1053+
*
1054+
* @param null|bool $automaticInsights whether automatic events collection is enabled for the application
1055+
*
1056+
* @return self
1057+
*/
1058+
public function setAutomaticInsights($automaticInsights)
1059+
{
1060+
$this->container['automaticInsights'] = $automaticInsights;
1061+
1062+
return $this;
1063+
}
1064+
10331065
/**
10341066
* Gets page.
10351067
*

lib/Model/Search/SearchResponse.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
4444
'serverUsed' => 'string',
4545
'userData' => 'object',
4646
'queryID' => 'string',
47+
'automaticInsights' => 'bool',
4748
'page' => 'int',
4849
'nbHits' => 'int',
4950
'nbPages' => 'int',
@@ -83,6 +84,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
8384
'serverUsed' => null,
8485
'userData' => null,
8586
'queryID' => null,
87+
'automaticInsights' => null,
8688
'page' => null,
8789
'nbHits' => null,
8890
'nbPages' => null,
@@ -123,6 +125,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
123125
'serverUsed' => 'serverUsed',
124126
'userData' => 'userData',
125127
'queryID' => 'queryID',
128+
'automaticInsights' => '_automaticInsights',
126129
'page' => 'page',
127130
'nbHits' => 'nbHits',
128131
'nbPages' => 'nbPages',
@@ -162,6 +165,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
162165
'serverUsed' => 'setServerUsed',
163166
'userData' => 'setUserData',
164167
'queryID' => 'setQueryID',
168+
'automaticInsights' => 'setAutomaticInsights',
165169
'page' => 'setPage',
166170
'nbHits' => 'setNbHits',
167171
'nbPages' => 'setNbPages',
@@ -201,6 +205,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
201205
'serverUsed' => 'getServerUsed',
202206
'userData' => 'getUserData',
203207
'queryID' => 'getQueryID',
208+
'automaticInsights' => 'getAutomaticInsights',
204209
'page' => 'getPage',
205210
'nbHits' => 'getNbHits',
206211
'nbPages' => 'getNbPages',
@@ -296,6 +301,9 @@ public function __construct(?array $data = null)
296301
if (isset($data['queryID'])) {
297302
$this->container['queryID'] = $data['queryID'];
298303
}
304+
if (isset($data['automaticInsights'])) {
305+
$this->container['automaticInsights'] = $data['automaticInsights'];
306+
}
299307
if (isset($data['page'])) {
300308
$this->container['page'] = $data['page'];
301309
}
@@ -1034,6 +1042,30 @@ public function setQueryID($queryID)
10341042
return $this;
10351043
}
10361044

1045+
/**
1046+
* Gets automaticInsights.
1047+
*
1048+
* @return null|bool
1049+
*/
1050+
public function getAutomaticInsights()
1051+
{
1052+
return $this->container['automaticInsights'] ?? null;
1053+
}
1054+
1055+
/**
1056+
* Sets automaticInsights.
1057+
*
1058+
* @param null|bool $automaticInsights whether automatic events collection is enabled for the application
1059+
*
1060+
* @return self
1061+
*/
1062+
public function setAutomaticInsights($automaticInsights)
1063+
{
1064+
$this->container['automaticInsights'] = $automaticInsights;
1065+
1066+
return $this;
1067+
}
1068+
10371069
/**
10381070
* Gets page.
10391071
*

lib/Model/Search/SearchResult.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SearchResult extends AbstractModel implements ModelInterface, \ArrayAccess
4444
'serverUsed' => 'string',
4545
'userData' => 'object',
4646
'queryID' => 'string',
47+
'automaticInsights' => 'bool',
4748
'page' => 'int',
4849
'nbHits' => 'int',
4950
'nbPages' => 'int',
@@ -84,6 +85,7 @@ class SearchResult extends AbstractModel implements ModelInterface, \ArrayAccess
8485
'serverUsed' => null,
8586
'userData' => null,
8687
'queryID' => null,
88+
'automaticInsights' => null,
8789
'page' => null,
8890
'nbHits' => null,
8991
'nbPages' => null,
@@ -125,6 +127,7 @@ class SearchResult extends AbstractModel implements ModelInterface, \ArrayAccess
125127
'serverUsed' => 'serverUsed',
126128
'userData' => 'userData',
127129
'queryID' => 'queryID',
130+
'automaticInsights' => '_automaticInsights',
128131
'page' => 'page',
129132
'nbHits' => 'nbHits',
130133
'nbPages' => 'nbPages',
@@ -165,6 +168,7 @@ class SearchResult extends AbstractModel implements ModelInterface, \ArrayAccess
165168
'serverUsed' => 'setServerUsed',
166169
'userData' => 'setUserData',
167170
'queryID' => 'setQueryID',
171+
'automaticInsights' => 'setAutomaticInsights',
168172
'page' => 'setPage',
169173
'nbHits' => 'setNbHits',
170174
'nbPages' => 'setNbPages',
@@ -205,6 +209,7 @@ class SearchResult extends AbstractModel implements ModelInterface, \ArrayAccess
205209
'serverUsed' => 'getServerUsed',
206210
'userData' => 'getUserData',
207211
'queryID' => 'getQueryID',
212+
'automaticInsights' => 'getAutomaticInsights',
208213
'page' => 'getPage',
209214
'nbHits' => 'getNbHits',
210215
'nbPages' => 'getNbPages',
@@ -301,6 +306,9 @@ public function __construct(?array $data = null)
301306
if (isset($data['queryID'])) {
302307
$this->container['queryID'] = $data['queryID'];
303308
}
309+
if (isset($data['automaticInsights'])) {
310+
$this->container['automaticInsights'] = $data['automaticInsights'];
311+
}
304312
if (isset($data['page'])) {
305313
$this->container['page'] = $data['page'];
306314
}
@@ -1044,6 +1052,30 @@ public function setQueryID($queryID)
10441052
return $this;
10451053
}
10461054

1055+
/**
1056+
* Gets automaticInsights.
1057+
*
1058+
* @return null|bool
1059+
*/
1060+
public function getAutomaticInsights()
1061+
{
1062+
return $this->container['automaticInsights'] ?? null;
1063+
}
1064+
1065+
/**
1066+
* Sets automaticInsights.
1067+
*
1068+
* @param null|bool $automaticInsights whether automatic events collection is enabled for the application
1069+
*
1070+
* @return self
1071+
*/
1072+
public function setAutomaticInsights($automaticInsights)
1073+
{
1074+
$this->container['automaticInsights'] = $automaticInsights;
1075+
1076+
return $this;
1077+
}
1078+
10471079
/**
10481080
* Gets page.
10491081
*

0 commit comments

Comments
 (0)