Skip to content

Commit 66f7706

Browse files
IvanLHcopybara-github
authored andcommitted
doc: Add format information to Cache fields
PiperOrigin-RevId: 740440556
1 parent f2f92a7 commit 66f7706

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

google/genai/types.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6718,11 +6718,11 @@ class CreateCachedContentConfig(_common.BaseModel):
67186718
)
67196719
ttl: Optional[str] = Field(
67206720
default=None,
6721-
description="""The TTL for this resource. The expiration time is computed: now + TTL.""",
6721+
description="""The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s".""",
67226722
)
67236723
expire_time: Optional[datetime.datetime] = Field(
67246724
default=None,
6725-
description="""Timestamp of when this resource is considered expired.""",
6725+
description="""Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.""",
67266726
)
67276727
display_name: Optional[str] = Field(
67286728
default=None,
@@ -6758,10 +6758,10 @@ class CreateCachedContentConfigDict(TypedDict, total=False):
67586758
"""Used to override HTTP request options."""
67596759

67606760
ttl: Optional[str]
6761-
"""The TTL for this resource. The expiration time is computed: now + TTL."""
6761+
"""The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s"."""
67626762

67636763
expire_time: Optional[datetime.datetime]
6764-
"""Timestamp of when this resource is considered expired."""
6764+
"""Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z."""
67656765

67666766
display_name: Optional[str]
67676767
"""The user-generated meaningful display name of the cached content.
@@ -7052,11 +7052,11 @@ class UpdateCachedContentConfig(_common.BaseModel):
70527052
)
70537053
ttl: Optional[str] = Field(
70547054
default=None,
7055-
description="""The TTL for this resource. The expiration time is computed: now + TTL.""",
7055+
description="""The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s".""",
70567056
)
70577057
expire_time: Optional[datetime.datetime] = Field(
70587058
default=None,
7059-
description="""Timestamp of when this resource is considered expired.""",
7059+
description="""Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.""",
70607060
)
70617061

70627062

@@ -7067,10 +7067,10 @@ class UpdateCachedContentConfigDict(TypedDict, total=False):
70677067
"""Used to override HTTP request options."""
70687068

70697069
ttl: Optional[str]
7070-
"""The TTL for this resource. The expiration time is computed: now + TTL."""
7070+
"""The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: "3.5s"."""
70717071

70727072
expire_time: Optional[datetime.datetime]
7073-
"""Timestamp of when this resource is considered expired."""
7073+
"""Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z."""
70747074

70757075

70767076
UpdateCachedContentConfigOrDict = Union[

0 commit comments

Comments
 (0)