Skip to content

Commit 627ee37

Browse files
github-actions[bot]github-actionshabara-k
authored
Codes are generated by openapi generator (#696)
Co-authored-by: github-actions <[email protected]> Co-authored-by: keigo habara <[email protected]>
1 parent 88ff3c3 commit 627ee37

19 files changed

+617
-15
lines changed

linebot/v3/messaging/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from linebot.v3.messaging.models.action import Action
3939
from linebot.v3.messaging.models.age_demographic import AgeDemographic
4040
from linebot.v3.messaging.models.age_demographic_filter import AgeDemographicFilter
41+
from linebot.v3.messaging.models.all_mention_target import AllMentionTarget
4142
from linebot.v3.messaging.models.alt_uri import AltUri
4243
from linebot.v3.messaging.models.app_type_demographic import AppTypeDemographic
4344
from linebot.v3.messaging.models.app_type_demographic_filter import AppTypeDemographicFilter
@@ -61,6 +62,7 @@
6162
from linebot.v3.messaging.models.datetime_picker_action import DatetimePickerAction
6263
from linebot.v3.messaging.models.demographic_filter import DemographicFilter
6364
from linebot.v3.messaging.models.emoji import Emoji
65+
from linebot.v3.messaging.models.emoji_substitution_object import EmojiSubstitutionObject
6466
from linebot.v3.messaging.models.error_detail import ErrorDetail
6567
from linebot.v3.messaging.models.error_response import ErrorResponse
6668
from linebot.v3.messaging.models.filter import Filter
@@ -120,6 +122,8 @@
120122
from linebot.v3.messaging.models.members_ids_response import MembersIdsResponse
121123
from linebot.v3.messaging.models.membership import Membership
122124
from linebot.v3.messaging.models.membership_list_response import MembershipListResponse
125+
from linebot.v3.messaging.models.mention_substitution_object import MentionSubstitutionObject
126+
from linebot.v3.messaging.models.mention_target import MentionTarget
123127
from linebot.v3.messaging.models.message import Message
124128
from linebot.v3.messaging.models.message_action import MessageAction
125129
from linebot.v3.messaging.models.message_imagemap_action import MessageImagemapAction
@@ -173,16 +177,19 @@
173177
from linebot.v3.messaging.models.subscription import Subscription
174178
from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic
175179
from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter
180+
from linebot.v3.messaging.models.substitution_object import SubstitutionObject
176181
from linebot.v3.messaging.models.template import Template
177182
from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio
178183
from linebot.v3.messaging.models.template_image_size import TemplateImageSize
179184
from linebot.v3.messaging.models.template_message import TemplateMessage
180185
from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest
181186
from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse
182187
from linebot.v3.messaging.models.text_message import TextMessage
188+
from linebot.v3.messaging.models.text_message_v2 import TextMessageV2
183189
from linebot.v3.messaging.models.uri_action import URIAction
184190
from linebot.v3.messaging.models.uri_imagemap_action import URIImagemapAction
185191
from linebot.v3.messaging.models.update_rich_menu_alias_request import UpdateRichMenuAliasRequest
192+
from linebot.v3.messaging.models.user_mention_target import UserMentionTarget
186193
from linebot.v3.messaging.models.user_profile_response import UserProfileResponse
187194
from linebot.v3.messaging.models.validate_message_request import ValidateMessageRequest
188195
from linebot.v3.messaging.models.video_message import VideoMessage

linebot/v3/messaging/api/async_messaging_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7568,7 +7568,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_
75687568
def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501
75697569
"""rich_menu_batch # noqa: E501
75707570
7571-
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
7571+
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
75727572
This method makes a synchronous HTTP request by default. To make an
75737573
asynchronous HTTP request, please pass async_req=True
75747574
@@ -7599,7 +7599,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_
75997599
def rich_menu_batch_with_http_info(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> ApiResponse: # noqa: E501
76007600
"""rich_menu_batch # noqa: E501
76017601
7602-
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
7602+
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
76037603
This method makes a synchronous HTTP request by default. To make an
76047604
asynchronous HTTP request, please pass async_req=True
76057605

linebot/v3/messaging/api/messaging_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7068,7 +7068,7 @@ def reply_message_with_http_info(self, reply_message_request : ReplyMessageReque
70687068
def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> None: # noqa: E501
70697069
"""rich_menu_batch # noqa: E501
70707070
7071-
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
7071+
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
70727072
This method makes a synchronous HTTP request by default. To make an
70737073
asynchronous HTTP request, please pass async_req=True
70747074
@@ -7097,7 +7097,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, **kwar
70977097
def rich_menu_batch_with_http_info(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> ApiResponse: # noqa: E501
70987098
"""rich_menu_batch # noqa: E501
70997099
7100-
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
7100+
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu # noqa: E501
71017101
This method makes a synchronous HTTP request by default. To make an
71027102
asynchronous HTTP request, please pass async_req=True
71037103

linebot/v3/messaging/docs/MessagingApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3735,7 +3735,7 @@ Name | Type | Description | Notes
37353735
37363736

37373737

3738-
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu
3738+
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu
37393739

37403740
### Example
37413741

linebot/v3/messaging/models/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from linebot.v3.messaging.models.action import Action
1818
from linebot.v3.messaging.models.age_demographic import AgeDemographic
1919
from linebot.v3.messaging.models.age_demographic_filter import AgeDemographicFilter
20+
from linebot.v3.messaging.models.all_mention_target import AllMentionTarget
2021
from linebot.v3.messaging.models.alt_uri import AltUri
2122
from linebot.v3.messaging.models.app_type_demographic import AppTypeDemographic
2223
from linebot.v3.messaging.models.app_type_demographic_filter import AppTypeDemographicFilter
@@ -40,6 +41,7 @@
4041
from linebot.v3.messaging.models.datetime_picker_action import DatetimePickerAction
4142
from linebot.v3.messaging.models.demographic_filter import DemographicFilter
4243
from linebot.v3.messaging.models.emoji import Emoji
44+
from linebot.v3.messaging.models.emoji_substitution_object import EmojiSubstitutionObject
4345
from linebot.v3.messaging.models.error_detail import ErrorDetail
4446
from linebot.v3.messaging.models.error_response import ErrorResponse
4547
from linebot.v3.messaging.models.filter import Filter
@@ -99,6 +101,8 @@
99101
from linebot.v3.messaging.models.members_ids_response import MembersIdsResponse
100102
from linebot.v3.messaging.models.membership import Membership
101103
from linebot.v3.messaging.models.membership_list_response import MembershipListResponse
104+
from linebot.v3.messaging.models.mention_substitution_object import MentionSubstitutionObject
105+
from linebot.v3.messaging.models.mention_target import MentionTarget
102106
from linebot.v3.messaging.models.message import Message
103107
from linebot.v3.messaging.models.message_action import MessageAction
104108
from linebot.v3.messaging.models.message_imagemap_action import MessageImagemapAction
@@ -152,16 +156,19 @@
152156
from linebot.v3.messaging.models.subscription import Subscription
153157
from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic
154158
from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter
159+
from linebot.v3.messaging.models.substitution_object import SubstitutionObject
155160
from linebot.v3.messaging.models.template import Template
156161
from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio
157162
from linebot.v3.messaging.models.template_image_size import TemplateImageSize
158163
from linebot.v3.messaging.models.template_message import TemplateMessage
159164
from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest
160165
from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse
161166
from linebot.v3.messaging.models.text_message import TextMessage
167+
from linebot.v3.messaging.models.text_message_v2 import TextMessageV2
162168
from linebot.v3.messaging.models.uri_action import URIAction
163169
from linebot.v3.messaging.models.uri_imagemap_action import URIImagemapAction
164170
from linebot.v3.messaging.models.update_rich_menu_alias_request import UpdateRichMenuAliasRequest
171+
from linebot.v3.messaging.models.user_mention_target import UserMentionTarget
165172
from linebot.v3.messaging.models.user_profile_response import UserProfileResponse
166173
from linebot.v3.messaging.models.validate_message_request import ValidateMessageRequest
167174
from linebot.v3.messaging.models.video_message import VideoMessage
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# coding: utf-8
2+
3+
"""
4+
LINE Messaging API
5+
6+
This document describes LINE Messaging API. # noqa: E501
7+
8+
The version of the OpenAPI document: 0.0.1
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
"""
13+
14+
15+
from __future__ import annotations
16+
import pprint
17+
import re # noqa: F401
18+
import json
19+
20+
21+
22+
23+
from linebot.v3.messaging.models.mention_target import MentionTarget
24+
25+
class AllMentionTarget(MentionTarget):
26+
"""
27+
AllMentionTarget
28+
https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mentionee-all
29+
"""
30+
type: str = "all"
31+
32+
__properties = ["type"]
33+
34+
class Config:
35+
"""Pydantic configuration"""
36+
allow_population_by_field_name = True
37+
validate_assignment = True
38+
39+
def to_str(self) -> str:
40+
"""Returns the string representation of the model using alias"""
41+
return pprint.pformat(self.dict(by_alias=True))
42+
43+
def to_json(self) -> str:
44+
"""Returns the JSON representation of the model using alias"""
45+
return json.dumps(self.to_dict())
46+
47+
@classmethod
48+
def from_json(cls, json_str: str) -> AllMentionTarget:
49+
"""Create an instance of AllMentionTarget from a JSON string"""
50+
return cls.from_dict(json.loads(json_str))
51+
52+
def to_dict(self):
53+
"""Returns the dictionary representation of the model using alias"""
54+
_dict = self.dict(by_alias=True,
55+
exclude={
56+
},
57+
exclude_none=True)
58+
return _dict
59+
60+
@classmethod
61+
def from_dict(cls, obj: dict) -> AllMentionTarget:
62+
"""Create an instance of AllMentionTarget from a dict"""
63+
if obj is None:
64+
return None
65+
66+
if not isinstance(obj, dict):
67+
return AllMentionTarget.parse_obj(obj)
68+
69+
_obj = AllMentionTarget.parse_obj({
70+
"type": obj.get("type")
71+
})
72+
return _obj
73+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# coding: utf-8
2+
3+
"""
4+
LINE Messaging API
5+
6+
This document describes LINE Messaging API. # noqa: E501
7+
8+
The version of the OpenAPI document: 0.0.1
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
"""
13+
14+
15+
from __future__ import annotations
16+
import pprint
17+
import re # noqa: F401
18+
import json
19+
20+
21+
22+
from pydantic.v1 import Field, StrictStr
23+
from linebot.v3.messaging.models.substitution_object import SubstitutionObject
24+
25+
class EmojiSubstitutionObject(SubstitutionObject):
26+
"""
27+
An object representing a emoji substitution.
28+
https://developers.line.biz/en/reference/messaging-api/#text-message-v2-emoji-object
29+
"""
30+
product_id: StrictStr = Field(..., alias="productId")
31+
emoji_id: StrictStr = Field(..., alias="emojiId")
32+
type: str = "emoji"
33+
34+
__properties = ["type", "productId", "emojiId"]
35+
36+
class Config:
37+
"""Pydantic configuration"""
38+
allow_population_by_field_name = True
39+
validate_assignment = True
40+
41+
def to_str(self) -> str:
42+
"""Returns the string representation of the model using alias"""
43+
return pprint.pformat(self.dict(by_alias=True))
44+
45+
def to_json(self) -> str:
46+
"""Returns the JSON representation of the model using alias"""
47+
return json.dumps(self.to_dict())
48+
49+
@classmethod
50+
def from_json(cls, json_str: str) -> EmojiSubstitutionObject:
51+
"""Create an instance of EmojiSubstitutionObject from a JSON string"""
52+
return cls.from_dict(json.loads(json_str))
53+
54+
def to_dict(self):
55+
"""Returns the dictionary representation of the model using alias"""
56+
_dict = self.dict(by_alias=True,
57+
exclude={
58+
},
59+
exclude_none=True)
60+
return _dict
61+
62+
@classmethod
63+
def from_dict(cls, obj: dict) -> EmojiSubstitutionObject:
64+
"""Create an instance of EmojiSubstitutionObject from a dict"""
65+
if obj is None:
66+
return None
67+
68+
if not isinstance(obj, dict):
69+
return EmojiSubstitutionObject.parse_obj(obj)
70+
71+
_obj = EmojiSubstitutionObject.parse_obj({
72+
"type": obj.get("type"),
73+
"product_id": obj.get("productId"),
74+
"emoji_id": obj.get("emojiId")
75+
})
76+
return _obj
77+

linebot/v3/messaging/models/flex_box_spacing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class FlexBoxSpacing(str, Enum):
2525
"""
26-
You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords.
26+
You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords.
2727
"""
2828

2929
"""

linebot/v3/messaging/models/flex_margin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class FlexMargin(str, Enum):
2525
"""
26-
You can specify the minimum space before a child component with the `margin` property of the child component, in pixels or with a keyword. FlexMargin just provides only keywords.
26+
You can specify the minimum space before a child component with the `margin` property of the child component, in pixels or with a keyword. FlexMargin just provides only keywords.
2727
"""
2828

2929
"""

linebot/v3/messaging/models/flex_span_size.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class FlexSpanSize(str, Enum):
2525
"""
26-
Font size in the `size` property of the Flex span component. You can specify the size in pixels or with a keyword. FlexSpanSize just provides only keywords.
26+
Font size in the `size` property of the Flex span component. You can specify the size in pixels or with a keyword. FlexSpanSize just provides only keywords.
2727
"""
2828

2929
"""

linebot/v3/messaging/models/flex_text_font_size.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class FlexTextFontSize(str, Enum):
2525
"""
26-
Font size in the `size` property of the Flex text component. You can specify the size in pixels or with a keyword. FlexTextFontSize just provides only keywords.
26+
Font size in the `size` property of the Flex text component. You can specify the size in pixels or with a keyword. FlexTextFontSize just provides only keywords.
2727
"""
2828

2929
"""

0 commit comments

Comments
 (0)