Skip to content

Commit

Permalink
Codes are generated by openapi generator (#696)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
Co-authored-by: keigo habara <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2024
1 parent 88ff3c3 commit 627ee37
Show file tree
Hide file tree
Showing 19 changed files with 617 additions and 15 deletions.
7 changes: 7 additions & 0 deletions linebot/v3/messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from linebot.v3.messaging.models.action import Action
from linebot.v3.messaging.models.age_demographic import AgeDemographic
from linebot.v3.messaging.models.age_demographic_filter import AgeDemographicFilter
from linebot.v3.messaging.models.all_mention_target import AllMentionTarget
from linebot.v3.messaging.models.alt_uri import AltUri
from linebot.v3.messaging.models.app_type_demographic import AppTypeDemographic
from linebot.v3.messaging.models.app_type_demographic_filter import AppTypeDemographicFilter
Expand All @@ -61,6 +62,7 @@
from linebot.v3.messaging.models.datetime_picker_action import DatetimePickerAction
from linebot.v3.messaging.models.demographic_filter import DemographicFilter
from linebot.v3.messaging.models.emoji import Emoji
from linebot.v3.messaging.models.emoji_substitution_object import EmojiSubstitutionObject
from linebot.v3.messaging.models.error_detail import ErrorDetail
from linebot.v3.messaging.models.error_response import ErrorResponse
from linebot.v3.messaging.models.filter import Filter
Expand Down Expand Up @@ -120,6 +122,8 @@
from linebot.v3.messaging.models.members_ids_response import MembersIdsResponse
from linebot.v3.messaging.models.membership import Membership
from linebot.v3.messaging.models.membership_list_response import MembershipListResponse
from linebot.v3.messaging.models.mention_substitution_object import MentionSubstitutionObject
from linebot.v3.messaging.models.mention_target import MentionTarget
from linebot.v3.messaging.models.message import Message
from linebot.v3.messaging.models.message_action import MessageAction
from linebot.v3.messaging.models.message_imagemap_action import MessageImagemapAction
Expand Down Expand Up @@ -173,16 +177,19 @@
from linebot.v3.messaging.models.subscription import Subscription
from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic
from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter
from linebot.v3.messaging.models.substitution_object import SubstitutionObject
from linebot.v3.messaging.models.template import Template
from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio
from linebot.v3.messaging.models.template_image_size import TemplateImageSize
from linebot.v3.messaging.models.template_message import TemplateMessage
from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest
from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse
from linebot.v3.messaging.models.text_message import TextMessage
from linebot.v3.messaging.models.text_message_v2 import TextMessageV2
from linebot.v3.messaging.models.uri_action import URIAction
from linebot.v3.messaging.models.uri_imagemap_action import URIImagemapAction
from linebot.v3.messaging.models.update_rich_menu_alias_request import UpdateRichMenuAliasRequest
from linebot.v3.messaging.models.user_mention_target import UserMentionTarget
from linebot.v3.messaging.models.user_profile_response import UserProfileResponse
from linebot.v3.messaging.models.validate_message_request import ValidateMessageRequest
from linebot.v3.messaging.models.video_message import VideoMessage
4 changes: 2 additions & 2 deletions linebot/v3/messaging/api/async_messaging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7568,7 +7568,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_
def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501
"""rich_menu_batch # noqa: E501
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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -7599,7 +7599,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, async_
def rich_menu_batch_with_http_info(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> ApiResponse: # noqa: E501
"""rich_menu_batch # noqa: E501
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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down
4 changes: 2 additions & 2 deletions linebot/v3/messaging/api/messaging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7068,7 +7068,7 @@ def reply_message_with_http_info(self, reply_message_request : ReplyMessageReque
def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> None: # noqa: E501
"""rich_menu_batch # noqa: E501
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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -7097,7 +7097,7 @@ def rich_menu_batch(self, rich_menu_batch_request : RichMenuBatchRequest, **kwar
def rich_menu_batch_with_http_info(self, rich_menu_batch_request : RichMenuBatchRequest, **kwargs) -> ApiResponse: # noqa: E501
"""rich_menu_batch # noqa: E501
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
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
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/messaging/docs/MessagingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3735,7 +3735,7 @@ Name | Type | Description | Notes


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
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

### Example

Expand Down
7 changes: 7 additions & 0 deletions linebot/v3/messaging/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from linebot.v3.messaging.models.action import Action
from linebot.v3.messaging.models.age_demographic import AgeDemographic
from linebot.v3.messaging.models.age_demographic_filter import AgeDemographicFilter
from linebot.v3.messaging.models.all_mention_target import AllMentionTarget
from linebot.v3.messaging.models.alt_uri import AltUri
from linebot.v3.messaging.models.app_type_demographic import AppTypeDemographic
from linebot.v3.messaging.models.app_type_demographic_filter import AppTypeDemographicFilter
Expand All @@ -40,6 +41,7 @@
from linebot.v3.messaging.models.datetime_picker_action import DatetimePickerAction
from linebot.v3.messaging.models.demographic_filter import DemographicFilter
from linebot.v3.messaging.models.emoji import Emoji
from linebot.v3.messaging.models.emoji_substitution_object import EmojiSubstitutionObject
from linebot.v3.messaging.models.error_detail import ErrorDetail
from linebot.v3.messaging.models.error_response import ErrorResponse
from linebot.v3.messaging.models.filter import Filter
Expand Down Expand Up @@ -99,6 +101,8 @@
from linebot.v3.messaging.models.members_ids_response import MembersIdsResponse
from linebot.v3.messaging.models.membership import Membership
from linebot.v3.messaging.models.membership_list_response import MembershipListResponse
from linebot.v3.messaging.models.mention_substitution_object import MentionSubstitutionObject
from linebot.v3.messaging.models.mention_target import MentionTarget
from linebot.v3.messaging.models.message import Message
from linebot.v3.messaging.models.message_action import MessageAction
from linebot.v3.messaging.models.message_imagemap_action import MessageImagemapAction
Expand Down Expand Up @@ -152,16 +156,19 @@
from linebot.v3.messaging.models.subscription import Subscription
from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic
from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter
from linebot.v3.messaging.models.substitution_object import SubstitutionObject
from linebot.v3.messaging.models.template import Template
from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio
from linebot.v3.messaging.models.template_image_size import TemplateImageSize
from linebot.v3.messaging.models.template_message import TemplateMessage
from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest
from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse
from linebot.v3.messaging.models.text_message import TextMessage
from linebot.v3.messaging.models.text_message_v2 import TextMessageV2
from linebot.v3.messaging.models.uri_action import URIAction
from linebot.v3.messaging.models.uri_imagemap_action import URIImagemapAction
from linebot.v3.messaging.models.update_rich_menu_alias_request import UpdateRichMenuAliasRequest
from linebot.v3.messaging.models.user_mention_target import UserMentionTarget
from linebot.v3.messaging.models.user_profile_response import UserProfileResponse
from linebot.v3.messaging.models.validate_message_request import ValidateMessageRequest
from linebot.v3.messaging.models.video_message import VideoMessage
73 changes: 73 additions & 0 deletions linebot/v3/messaging/models/all_mention_target.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# coding: utf-8

"""
LINE Messaging API
This document describes LINE Messaging API. # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


from __future__ import annotations
import pprint
import re # noqa: F401
import json




from linebot.v3.messaging.models.mention_target import MentionTarget

class AllMentionTarget(MentionTarget):
"""
AllMentionTarget
https://developers.line.biz/en/reference/messaging-api/#text-message-v2-mentionee-all
"""
type: str = "all"

__properties = ["type"]

class Config:
"""Pydantic configuration"""
allow_population_by_field_name = True
validate_assignment = True

def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.dict(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> AllMentionTarget:
"""Create an instance of AllMentionTarget from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
_dict = self.dict(by_alias=True,
exclude={
},
exclude_none=True)
return _dict

@classmethod
def from_dict(cls, obj: dict) -> AllMentionTarget:
"""Create an instance of AllMentionTarget from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return AllMentionTarget.parse_obj(obj)

_obj = AllMentionTarget.parse_obj({
"type": obj.get("type")
})
return _obj

77 changes: 77 additions & 0 deletions linebot/v3/messaging/models/emoji_substitution_object.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# coding: utf-8

"""
LINE Messaging API
This document describes LINE Messaging API. # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""


from __future__ import annotations
import pprint
import re # noqa: F401
import json



from pydantic.v1 import Field, StrictStr
from linebot.v3.messaging.models.substitution_object import SubstitutionObject

class EmojiSubstitutionObject(SubstitutionObject):
"""
An object representing a emoji substitution.
https://developers.line.biz/en/reference/messaging-api/#text-message-v2-emoji-object
"""
product_id: StrictStr = Field(..., alias="productId")
emoji_id: StrictStr = Field(..., alias="emojiId")
type: str = "emoji"

__properties = ["type", "productId", "emojiId"]

class Config:
"""Pydantic configuration"""
allow_population_by_field_name = True
validate_assignment = True

def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.dict(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> EmojiSubstitutionObject:
"""Create an instance of EmojiSubstitutionObject from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self):
"""Returns the dictionary representation of the model using alias"""
_dict = self.dict(by_alias=True,
exclude={
},
exclude_none=True)
return _dict

@classmethod
def from_dict(cls, obj: dict) -> EmojiSubstitutionObject:
"""Create an instance of EmojiSubstitutionObject from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return EmojiSubstitutionObject.parse_obj(obj)

_obj = EmojiSubstitutionObject.parse_obj({
"type": obj.get("type"),
"product_id": obj.get("productId"),
"emoji_id": obj.get("emojiId")
})
return _obj

2 changes: 1 addition & 1 deletion linebot/v3/messaging/models/flex_box_spacing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class FlexBoxSpacing(str, Enum):
"""
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.
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.
"""

"""
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/messaging/models/flex_margin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class FlexMargin(str, Enum):
"""
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.
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.
"""

"""
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/messaging/models/flex_span_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class FlexSpanSize(str, Enum):
"""
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.
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.
"""

"""
Expand Down
2 changes: 1 addition & 1 deletion linebot/v3/messaging/models/flex_text_font_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class FlexTextFontSize(str, Enum):
"""
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.
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.
"""

"""
Expand Down
Loading

0 comments on commit 627ee37

Please sign in to comment.