Skip to content

Commit

Permalink
Codes are generated by openapi generator (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
github-actions[bot] and github-actions authored Oct 16, 2023
1 parent 41ba9d5 commit a9ddd47
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions linebot/v3/webhooks/models/audio_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@


from typing import Optional
from pydantic.v1 import Field, StrictInt, StrictStr
from pydantic.v1 import Field, StrictInt
from linebot.v3.webhooks.models.content_provider import ContentProvider
from linebot.v3.webhooks.models.message_content import MessageContent

class AudioMessageContent(MessageContent):
"""
AudioMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
content_provider: ContentProvider = Field(..., alias="contentProvider")
duration: Optional[StrictInt] = Field(None, description="Length of audio file (milliseconds)")
type: str = "audio"
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/file_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class FileMessageContent(MessageContent):
"""
FileMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
file_name: StrictStr = Field(..., alias="fileName", description="File name")
file_size: StrictInt = Field(..., alias="fileSize", description="File size in bytes")
type: str = "file"
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/image_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class ImageMessageContent(MessageContent):
"""
ImageMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
content_provider: ContentProvider = Field(..., alias="contentProvider")
image_set: Optional[ImageSet] = Field(None, alias="imageSet")
quote_token: StrictStr = Field(..., alias="quoteToken", description="Quote token to quote this message. ")
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/location_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class LocationMessageContent(MessageContent):
"""
LocationMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
title: Optional[StrictStr] = Field(None, description="Title")
address: Optional[StrictStr] = Field(None, description="Address")
latitude: Union[StrictFloat, StrictInt] = Field(..., description="Latitude")
Expand Down
3 changes: 2 additions & 1 deletion linebot/v3/webhooks/models/message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ class MessageContent(BaseModel):
https://developers.line.biz/en/reference/messaging-api/#message-event
"""
type: Optional[StrictStr] = Field(None, description="Type")
id: StrictStr = Field(..., description="Message ID")

__properties = ["type"]
__properties = ["type", "id"]

class Config:
"""Pydantic configuration"""
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/sticker_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class StickerMessageContent(MessageContent):
StickerMessageContent
https://developers.line.biz/en/reference/messaging-api/#wh-sticker
"""
id: StrictStr = Field(..., description="Message ID")
package_id: StrictStr = Field(..., alias="packageId", description="Package ID")
sticker_id: StrictStr = Field(..., alias="stickerId", description="Sticker ID")
sticker_resource_type: StrictStr = Field(..., alias="stickerResourceType")
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/text_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class TextMessageContent(MessageContent):
"""
TextMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
text: StrictStr = Field(..., description="Message text.")
emojis: Optional[conlist(Emoji)] = Field(None, description="Array of one or more LINE emoji objects. Only included in the message event when the text property contains a LINE emoji.")
mention: Optional[Mention] = None
Expand Down
1 change: 0 additions & 1 deletion linebot/v3/webhooks/models/video_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class VideoMessageContent(MessageContent):
"""
VideoMessageContent
"""
id: StrictStr = Field(..., description="Message ID")
duration: Optional[StrictInt] = Field(None, description="Length of video file (milliseconds)")
content_provider: ContentProvider = Field(..., alias="contentProvider")
quote_token: StrictStr = Field(..., alias="quoteToken", description="Quote token to quote this message. ")
Expand Down

0 comments on commit a9ddd47

Please sign in to comment.