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/linebot/v3/messaging/api/async_messaging_api.py b/linebot/v3/messaging/api/async_messaging_api.py index c0dce7a58..433e7956e 100644 --- a/linebot/v3/messaging/api/async_messaging_api.py +++ b/linebot/v3/messaging/api/async_messaging_api.py @@ -4360,7 +4360,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], async_req: Optional[bool]=None, **kwargs) -> Union[NumberOfMessagesResponse, Awaitable[NumberOfMessagesResponse]]: # noqa: E501 """get_pnp_message_statistics # noqa: E501 - Get number of sent LINE notification messages  # noqa: E501 + Get number of sent LINE notification messages # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -4391,7 +4391,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F def get_pnp_message_statistics_with_http_info(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> ApiResponse: # noqa: E501 """get_pnp_message_statistics # noqa: E501 - Get number of sent LINE notification messages  # noqa: E501 + Get number of sent LINE notification messages # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/linebot/v3/messaging/api/async_messaging_api_blob.py b/linebot/v3/messaging/api/async_messaging_api_blob.py index e832e9a0e..a6f18d2e5 100644 --- a/linebot/v3/messaging/api/async_messaging_api_blob.py +++ b/linebot/v3/messaging/api/async_messaging_api_blob.py @@ -22,7 +22,7 @@ from pydantic.v1 import Field, StrictBytes, StrictStr -from typing import Optional, Union +from typing import Union from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse @@ -697,15 +697,15 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, _request_auth=_params.get('_request_auth')) @overload - async def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> None: # noqa: E501 + async def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> None: # noqa: E501 ... @overload - def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, async_req: Optional[bool]=True, **kwargs) -> None: # noqa: E501 + def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], async_req: Optional[bool]=True, **kwargs) -> None: # noqa: E501 ... @validate_arguments - def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501 + def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501 """set_rich_menu_image # noqa: E501 Upload rich menu image # noqa: E501 @@ -717,7 +717,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des :param rich_menu_id: The ID of the rich menu to attach the image to (required) :type rich_menu_id: str - :param body: + :param body: (required) :type body: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -738,7 +738,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501 @validate_arguments - def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501 + def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> ApiResponse: # noqa: E501 """set_rich_menu_image # noqa: E501 Upload rich menu image # noqa: E501 @@ -750,7 +750,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, :param rich_menu_id: The ID of the rich menu to attach the image to (required) :type rich_menu_id: str - :param body: + :param body: (required) :type body: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional diff --git a/linebot/v3/messaging/api/messaging_api.py b/linebot/v3/messaging/api/messaging_api.py index 356df42b3..b364179bb 100644 --- a/linebot/v3/messaging/api/messaging_api.py +++ b/linebot/v3/messaging/api/messaging_api.py @@ -4070,7 +4070,7 @@ def get_number_of_sent_reply_messages_with_http_info(self, var_date : Annotated[ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> NumberOfMessagesResponse: # noqa: E501 """get_pnp_message_statistics # noqa: E501 - Get number of sent LINE notification messages  # noqa: E501 + Get number of sent LINE notification messages # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -4099,7 +4099,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F def get_pnp_message_statistics_with_http_info(self, var_date : Annotated[constr(strict=True), Field(..., description="Date the message was sent Format: `yyyyMMdd` (Example:`20211231`) Time zone: UTC+9 ")], **kwargs) -> ApiResponse: # noqa: E501 """get_pnp_message_statistics # noqa: E501 - Get number of sent LINE notification messages  # noqa: E501 + Get number of sent LINE notification messages # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/linebot/v3/messaging/api/messaging_api_blob.py b/linebot/v3/messaging/api/messaging_api_blob.py index c1a6d5729..e701968b1 100644 --- a/linebot/v3/messaging/api/messaging_api_blob.py +++ b/linebot/v3/messaging/api/messaging_api_blob.py @@ -20,7 +20,7 @@ from pydantic.v1 import Field, StrictBytes, StrictStr -from typing import Optional, Union +from typing import Union from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse @@ -655,7 +655,7 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, _request_auth=_params.get('_request_auth')) @validate_arguments - def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> None: # noqa: E501 + def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> None: # noqa: E501 """set_rich_menu_image # noqa: E501 Upload rich menu image # noqa: E501 @@ -667,7 +667,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des :param rich_menu_id: The ID of the rich menu to attach the image to (required) :type rich_menu_id: str - :param body: + :param body: (required) :type body: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional @@ -686,7 +686,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501 @validate_arguments - def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Optional[Union[StrictBytes, StrictStr]] = None, **kwargs) -> ApiResponse: # noqa: E501 + def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, Field(..., description="The ID of the rich menu to attach the image to")], body : Union[StrictBytes, StrictStr], **kwargs) -> ApiResponse: # noqa: E501 """set_rich_menu_image # noqa: E501 Upload rich menu image # noqa: E501 @@ -698,7 +698,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr, :param rich_menu_id: The ID of the rich menu to attach the image to (required) :type rich_menu_id: str - :param body: + :param body: (required) :type body: bytearray :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional diff --git a/linebot/v3/messaging/docs/MessagingApi.md b/linebot/v3/messaging/docs/MessagingApi.md index 24866c246..f9dcc2486 100644 --- a/linebot/v3/messaging/docs/MessagingApi.md +++ b/linebot/v3/messaging/docs/MessagingApi.md @@ -2170,7 +2170,7 @@ Name | Type | Description | Notes -Get number of sent LINE notification messages  +Get number of sent LINE notification messages ### Example diff --git a/linebot/v3/messaging/docs/MessagingApiBlob.md b/linebot/v3/messaging/docs/MessagingApiBlob.md index 1317ee420..87fa7b0a6 100644 --- a/linebot/v3/messaging/docs/MessagingApiBlob.md +++ b/linebot/v3/messaging/docs/MessagingApiBlob.md @@ -309,7 +309,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **set_rich_menu_image** -> set_rich_menu_image(rich_menu_id, body=body) +> set_rich_menu_image(rich_menu_id, body) @@ -346,10 +346,10 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = linebot.v3.messaging.MessagingApiBlob(api_client) rich_menu_id = 'rich_menu_id_example' # str | The ID of the rich menu to attach the image to - body = None # bytearray | (optional) + body = None # bytearray | try: - api_instance.set_rich_menu_image(rich_menu_id, body=body) + api_instance.set_rich_menu_image(rich_menu_id, body) except Exception as e: print("Exception when calling MessagingApiBlob->set_rich_menu_image: %s\n" % e) ``` @@ -360,7 +360,7 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **rich_menu_id** | **str**| The ID of the rich menu to attach the image to | - **body** | **bytearray**| | [optional] + **body** | **bytearray**| | ### Return type