Skip to content

Commit

Permalink
docs: fix File.expiration_time description (fixes #318)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 726038684
  • Loading branch information
sararob authored and copybara-github committed Feb 12, 2025
1 parent 673c814 commit 77a99ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/genai/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ class File(_common.BaseModel):
)
expiration_time: Optional[datetime.datetime] = Field(
default=None,
description="""Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: 'Welcome Image'""",
description="""Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.""",
)
update_time: Optional[datetime.datetime] = Field(
default=None,
Expand Down Expand Up @@ -1644,7 +1644,7 @@ class FileDict(TypedDict, total=False):
"""Output only. The timestamp of when the `File` was created."""

expiration_time: Optional[datetime.datetime]
"""Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: 'Welcome Image'"""
"""Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire."""

update_time: Optional[datetime.datetime]
"""Output only. The timestamp of when the `File` was last updated."""
Expand Down

0 comments on commit 77a99ea

Please sign in to comment.