Skip to content

Commit

Permalink
feat(specs): add missing message attribute to GetObjectsResponse [ski…
Browse files Browse the repository at this point in the history
…p-bc] (generated)

algolia/api-clients-automation#4029

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Vincent Lemeunier <vincentlemeunier+git@gmail.com>
  • Loading branch information
algolia-bot and kombucha committed Oct 24, 2024
1 parent a5535c4 commit 47165a8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lib/Model/Search/GetObjectsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
* @var string[]
*/
protected static $modelTypes = [
'message' => 'string',
'results' => 'object[]',
];

Expand All @@ -29,6 +30,7 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
* @var string[]
*/
protected static $modelFormats = [
'message' => null,
'results' => null,
];

Expand All @@ -39,6 +41,7 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
* @var string[]
*/
protected static $attributeMap = [
'message' => 'message',
'results' => 'results',
];

Expand All @@ -48,6 +51,7 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
* @var string[]
*/
protected static $setters = [
'message' => 'setMessage',
'results' => 'setResults',
];

Expand All @@ -57,6 +61,7 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
* @var string[]
*/
protected static $getters = [
'message' => 'getMessage',
'results' => 'getResults',
];

Expand All @@ -74,6 +79,9 @@ class GetObjectsResponse extends AbstractModel implements ModelInterface, \Array
*/
public function __construct(?array $data = null)
{
if (isset($data['message'])) {
$this->container['message'] = $data['message'];
}
if (isset($data['results'])) {
$this->container['results'] = $data['results'];
}
Expand Down Expand Up @@ -157,6 +165,30 @@ public function valid()
return 0 === count($this->listInvalidProperties());
}

/**
* Gets message.
*
* @return null|string
*/
public function getMessage()
{
return $this->container['message'] ?? null;
}

/**
* Sets message.
*
* @param null|string $message an optional status message
*
* @return self
*/
public function setMessage($message)
{
$this->container['message'] = $message;

return $this;
}

/**
* Gets results.
*
Expand Down

0 comments on commit 47165a8

Please sign in to comment.