Skip to content

Commit c5481c8

Browse files
committed
Update line-openapi
1 parent 9d53ec3 commit c5481c8

9 files changed

Lines changed: 30 additions & 30 deletions

line-openapi

linebot/v3/async_line_bot_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,24 +2215,24 @@ async def get_rich_menu_image_with_http_info(self, rich_menu_id: Annotated[Stric
22152215
"""
22162216
return await self._messaging_api_blob.get_rich_menu_image_with_http_info(rich_menu_id)
22172217

2218-
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) -> None:
2218+
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]) -> None:
22192219
"""Upload rich menu image
22202220
22212221
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
22222222
:type rich_menu_id: str
2223-
:param body:
2223+
:param body: (required)
22242224
:type body: bytearray
22252225
:return: Returns the result object.
22262226
:rtype: None
22272227
"""
22282228
return await self._messaging_api_blob.set_rich_menu_image(rich_menu_id, body)
22292229

2230-
async 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) -> ApiResponse:
2230+
async 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]) -> ApiResponse:
22312231
"""Upload rich menu image
22322232
22332233
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
22342234
:type rich_menu_id: str
2235-
:param body:
2235+
:param body: (required)
22362236
:type body: bytearray
22372237
:return: Returns the result object.
22382238
:rtype: None

linebot/v3/line_bot_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,24 +2219,24 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id: Annotated[StrictStr,
22192219
"""
22202220
return self._messaging_api_blob.get_rich_menu_image_with_http_info(rich_menu_id)
22212221

2222-
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) -> None:
2222+
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]) -> None:
22232223
"""Upload rich menu image
22242224
22252225
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
22262226
:type rich_menu_id: str
2227-
:param body:
2227+
:param body: (required)
22282228
:type body: bytearray
22292229
:return: Returns the result object.
22302230
:rtype: None
22312231
"""
22322232
return self._messaging_api_blob.set_rich_menu_image(rich_menu_id, body)
22332233

2234-
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) -> ApiResponse:
2234+
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]) -> ApiResponse:
22352235
"""Upload rich menu image
22362236
22372237
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
22382238
:type rich_menu_id: str
2239-
:param body:
2239+
:param body: (required)
22402240
:type body: bytearray
22412241
:return: Returns the result object.
22422242
:rtype: None

linebot/v3/messaging/api/async_messaging_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4363,7 +4363,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
43634363
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
43644364
"""get_pnp_message_statistics # noqa: E501
43654365
4366-
Get number of sent LINE notification messages  # noqa: E501
4366+
Get number of sent LINE notification messages # noqa: E501
43674367
This method makes a synchronous HTTP request by default. To make an
43684368
asynchronous HTTP request, please pass async_req=True
43694369
@@ -4394,7 +4394,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
43944394
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
43954395
"""get_pnp_message_statistics # noqa: E501
43964396
4397-
Get number of sent LINE notification messages  # noqa: E501
4397+
Get number of sent LINE notification messages # noqa: E501
43984398
This method makes a synchronous HTTP request by default. To make an
43994399
asynchronous HTTP request, please pass async_req=True
44004400

linebot/v3/messaging/api/async_messaging_api_blob.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from pydantic.v1 import Field, StrictBytes, StrictStr
2424

25-
from typing import Optional, Union
25+
from typing import Union
2626

2727
from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse
2828

@@ -700,15 +700,15 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
700700
_request_auth=_params.get('_request_auth'))
701701

702702
@overload
703-
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
703+
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
704704
...
705705

706706
@overload
707-
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
707+
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
708708
...
709709

710710
@validate_arguments
711-
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
711+
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
712712
"""set_rich_menu_image # noqa: E501
713713
714714
Upload rich menu image # noqa: E501
@@ -720,7 +720,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
720720
721721
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
722722
:type rich_menu_id: str
723-
:param body:
723+
:param body: (required)
724724
:type body: bytearray
725725
:param async_req: Whether to execute the request asynchronously.
726726
:type async_req: bool, optional
@@ -741,7 +741,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
741741
return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501
742742

743743
@validate_arguments
744-
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
744+
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
745745
"""set_rich_menu_image # noqa: E501
746746
747747
Upload rich menu image # noqa: E501
@@ -753,7 +753,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
753753
754754
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
755755
:type rich_menu_id: str
756-
:param body:
756+
:param body: (required)
757757
:type body: bytearray
758758
:param async_req: Whether to execute the request asynchronously.
759759
:type async_req: bool, optional

linebot/v3/messaging/api/messaging_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@ def get_number_of_sent_reply_messages_with_http_info(self, var_date : Annotated[
40734073
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
40744074
"""get_pnp_message_statistics # noqa: E501
40754075
4076-
Get number of sent LINE notification messages  # noqa: E501
4076+
Get number of sent LINE notification messages # noqa: E501
40774077
This method makes a synchronous HTTP request by default. To make an
40784078
asynchronous HTTP request, please pass async_req=True
40794079
@@ -4102,7 +4102,7 @@ def get_pnp_message_statistics(self, var_date : Annotated[constr(strict=True), F
41024102
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
41034103
"""get_pnp_message_statistics # noqa: E501
41044104
4105-
Get number of sent LINE notification messages  # noqa: E501
4105+
Get number of sent LINE notification messages # noqa: E501
41064106
This method makes a synchronous HTTP request by default. To make an
41074107
asynchronous HTTP request, please pass async_req=True
41084108

linebot/v3/messaging/api/messaging_api_blob.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from pydantic.v1 import Field, StrictBytes, StrictStr
2222

23-
from typing import Optional, Union
23+
from typing import Union
2424

2525
from linebot.v3.messaging.models.get_message_content_transcoding_response import GetMessageContentTranscodingResponse
2626

@@ -658,7 +658,7 @@ def get_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
658658
_request_auth=_params.get('_request_auth'))
659659

660660
@validate_arguments
661-
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
661+
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
662662
"""set_rich_menu_image # noqa: E501
663663
664664
Upload rich menu image # noqa: E501
@@ -670,7 +670,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
670670
671671
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
672672
:type rich_menu_id: str
673-
:param body:
673+
:param body: (required)
674674
:type body: bytearray
675675
:param async_req: Whether to execute the request asynchronously.
676676
:type async_req: bool, optional
@@ -689,7 +689,7 @@ def set_rich_menu_image(self, rich_menu_id : Annotated[StrictStr, Field(..., des
689689
return self.set_rich_menu_image_with_http_info(rich_menu_id, body, **kwargs) # noqa: E501
690690

691691
@validate_arguments
692-
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
692+
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
693693
"""set_rich_menu_image # noqa: E501
694694
695695
Upload rich menu image # noqa: E501
@@ -701,7 +701,7 @@ def set_rich_menu_image_with_http_info(self, rich_menu_id : Annotated[StrictStr,
701701
702702
:param rich_menu_id: The ID of the rich menu to attach the image to (required)
703703
:type rich_menu_id: str
704-
:param body:
704+
:param body: (required)
705705
:type body: bytearray
706706
:param async_req: Whether to execute the request asynchronously.
707707
:type async_req: bool, optional

linebot/v3/messaging/docs/MessagingApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ Name | Type | Description | Notes
21702170
21712171

21722172

2173-
Get number of sent LINE notification messages 
2173+
Get number of sent LINE notification messages
21742174

21752175
### Example
21762176

linebot/v3/messaging/docs/MessagingApiBlob.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Name | Type | Description | Notes
309309
[[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)
310310

311311
# **set_rich_menu_image**
312-
> set_rich_menu_image(rich_menu_id, body=body)
312+
> set_rich_menu_image(rich_menu_id, body)
313313
314314

315315

@@ -346,10 +346,10 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client:
346346
# Create an instance of the API class
347347
api_instance = linebot.v3.messaging.MessagingApiBlob(api_client)
348348
rich_menu_id = 'rich_menu_id_example' # str | The ID of the rich menu to attach the image to
349-
body = None # bytearray | (optional)
349+
body = None # bytearray |
350350

351351
try:
352-
api_instance.set_rich_menu_image(rich_menu_id, body=body)
352+
api_instance.set_rich_menu_image(rich_menu_id, body)
353353
except Exception as e:
354354
print("Exception when calling MessagingApiBlob->set_rich_menu_image: %s\n" % e)
355355
```
@@ -360,7 +360,7 @@ with linebot.v3.messaging.ApiClient(configuration) as api_client:
360360
Name | Type | Description | Notes
361361
------------- | ------------- | ------------- | -------------
362362
**rich_menu_id** | **str**| The ID of the rich menu to attach the image to |
363-
**body** | **bytearray**| | [optional]
363+
**body** | **bytearray**| |
364364

365365
### Return type
366366

0 commit comments

Comments
 (0)