Table of Contents

Class UpdateCachedContentConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Optional parameters for caches.update method.

public record UpdateCachedContentConfig : IEquatable<UpdateCachedContentConfig>
Inheritance
UpdateCachedContentConfig
Implements
Inherited Members

Properties

ExpireTime

Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z.

[JsonPropertyName("expireTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? ExpireTime { get; set; }

Property Value

DateTime?

HttpOptions

Used to override HTTP request options.

[JsonPropertyName("httpOptions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpOptions? HttpOptions { get; set; }

Property Value

HttpOptions

Ttl

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

[JsonPropertyName("ttl")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Ttl { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a UpdateCachedContentConfig object.

public static UpdateCachedContentConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UpdateCachedContentConfig

The deserialized UpdateCachedContentConfig object, or null if deserialization fails.