diff --git a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html index 874392bf1..ac953d925 100644 --- a/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html +++ b/docs/classes/LINE-Clients-MessagingApi-Api-MessagingApiBlobApi.html @@ -2980,7 +2980,7 @@

public - setRichMenuImage(string $richMenuId[, SplFileObject|null $body = null ][, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : void + setRichMenuImage(string $richMenuId, SplFileObject $body[, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : void
@@ -3003,10 +3003,10 @@

Parameters
$body - : SplFileObject|null - = null
+ : SplFileObject +
-

body (optional)

+

body (required)

@@ -3092,7 +3092,7 @@

public - setRichMenuImageAsync(string $richMenuId[, SplFileObject|null $body = null ][, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : PromiseInterface + setRichMenuImageAsync(string $richMenuId, SplFileObject $body[, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : PromiseInterface
@@ -3115,10 +3115,10 @@

Parameters
$body - : SplFileObject|null - = null
+ : SplFileObject +
-

(optional)

+

(required)

@@ -3198,7 +3198,7 @@

public - setRichMenuImageAsyncWithHttpInfo(string $richMenuId[, SplFileObject|null $body = null ][, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : PromiseInterface + setRichMenuImageAsyncWithHttpInfo(string $richMenuId, SplFileObject $body[, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : PromiseInterface
@@ -3221,10 +3221,10 @@

Parameters
$body - : SplFileObject|null - = null
+ : SplFileObject +
-

(optional)

+

(required)

@@ -3304,7 +3304,7 @@

public - setRichMenuImageRequest(string $richMenuId[, SplFileObject|null $body = null ][, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : Request + setRichMenuImageRequest(string $richMenuId, SplFileObject $body[, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : Request
@@ -3327,10 +3327,10 @@

Parameters
$body - : SplFileObject|null - = null
+ : SplFileObject +
-

(optional)

+

(required)

@@ -3410,7 +3410,7 @@

public - setRichMenuImageWithHttpInfo(string $richMenuId[, SplFileObject|null $body = null ][, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : array<string|int, mixed> + setRichMenuImageWithHttpInfo(string $richMenuId, SplFileObject $body[, null|int $hostIndex = null ][, array<string|int, mixed> $variables = [] ][, string $contentType = self::contentTypes['setRichMenuImage'][0] ]) : array<string|int, mixed>
@@ -3433,10 +3433,10 @@

Parameters
$body - : SplFileObject|null - = null
+ : SplFileObject +
-

(optional)

+

(required)

@@ -3522,7 +3522,7 @@

@@ -3754,7 +3754,7 @@

MessagingApiBlobApi.php : - 1859 + 1865 diff --git a/line-openapi b/line-openapi index 982bad2af..779d8ca9e 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 982bad2af44827ee5586b28b6a3d7d573217632a +Subproject commit 779d8ca9e632452ceb4e387b59b7f993497f051c diff --git a/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php b/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php index 4ff20bd50..26ecd31dd 100644 --- a/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php +++ b/src/clients/messaging-api/lib/Api/MessagingApiBlobApi.php @@ -1593,7 +1593,7 @@ protected function getHostSettingsForgetRichMenuImage(): array * URL: https://api-data.line.me * * @param string $richMenuId The ID of the rich menu to attach the image to (required) - * @param \SplFileObject|null $body body (optional) + * @param \SplFileObject $body body (required) * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setRichMenuImage'] to see the possible values for this operation @@ -1602,7 +1602,7 @@ protected function getHostSettingsForgetRichMenuImage(): array * @throws \InvalidArgumentException * @return void */ - public function setRichMenuImage($richMenuId, $body = null, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) + public function setRichMenuImage($richMenuId, $body, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) { $this->setRichMenuImageWithHttpInfo($richMenuId, $body, $hostIndex, $variables, $contentType); } @@ -1615,7 +1615,7 @@ public function setRichMenuImage($richMenuId, $body = null, ?int $hostIndex = nu * URL: https://api-data.line.me * * @param string $richMenuId The ID of the rich menu to attach the image to (required) - * @param \SplFileObject|null $body (optional) + * @param \SplFileObject $body (required) * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setRichMenuImage'] to see the possible values for this operation @@ -1624,7 +1624,7 @@ public function setRichMenuImage($richMenuId, $body = null, ?int $hostIndex = nu * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function setRichMenuImageWithHttpInfo($richMenuId, $body = null, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) + public function setRichMenuImageWithHttpInfo($richMenuId, $body, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) { $request = $this->setRichMenuImageRequest($richMenuId, $body, $hostIndex, $variables, $contentType); @@ -1668,7 +1668,7 @@ public function setRichMenuImageWithHttpInfo($richMenuId, $body = null, ?int $ho * URL: https://api-data.line.me * * @param string $richMenuId The ID of the rich menu to attach the image to (required) - * @param \SplFileObject|null $body (optional) + * @param \SplFileObject $body (required) * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setRichMenuImage'] to see the possible values for this operation @@ -1676,7 +1676,7 @@ public function setRichMenuImageWithHttpInfo($richMenuId, $body = null, ?int $ho * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function setRichMenuImageAsync($richMenuId, $body = null, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) + public function setRichMenuImageAsync($richMenuId, $body, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) { return $this->setRichMenuImageAsyncWithHttpInfo($richMenuId, $body, $hostIndex, $variables, $contentType) ->then( @@ -1694,7 +1694,7 @@ function ($response) { * URL: https://api-data.line.me * * @param string $richMenuId The ID of the rich menu to attach the image to (required) - * @param \SplFileObject|null $body (optional) + * @param \SplFileObject $body (required) * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setRichMenuImage'] to see the possible values for this operation @@ -1702,7 +1702,7 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function setRichMenuImageAsyncWithHttpInfo($richMenuId, $body = null, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) + public function setRichMenuImageAsyncWithHttpInfo($richMenuId, $body, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) { $returnType = ''; $request = $this->setRichMenuImageRequest($richMenuId, $body, $hostIndex, $variables, $contentType); @@ -1738,7 +1738,7 @@ function ($exception) { * URL: https://api-data.line.me * * @param string $richMenuId The ID of the rich menu to attach the image to (required) - * @param \SplFileObject|null $body (optional) + * @param \SplFileObject $body (required) * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. * @param string $contentType The value for the Content-Type header. Check self::contentTypes['setRichMenuImage'] to see the possible values for this operation @@ -1746,7 +1746,7 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function setRichMenuImageRequest($richMenuId, $body = null, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) + public function setRichMenuImageRequest($richMenuId, $body, ?int $hostIndex = null, array $variables = [], string $contentType = self::contentTypes['setRichMenuImage'][0]) { // verify the required parameter 'richMenuId' is set @@ -1756,6 +1756,12 @@ public function setRichMenuImageRequest($richMenuId, $body = null, ?int $hostInd ); } + // verify the required parameter 'body' is set + if ($body === null || (is_array($body) && count($body) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $body when calling setRichMenuImage' + ); + } $resourcePath = '/v2/bot/richmenu/{richMenuId}/content';