Class UpdateCachedContentConfig
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
HttpOptions
Used to override HTTP request options.
[JsonPropertyName("httpOptions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpOptions? HttpOptions { get; set; }
Property Value
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a UpdateCachedContentConfig object.
public static UpdateCachedContentConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- UpdateCachedContentConfig
The deserialized UpdateCachedContentConfig object, or null if deserialization fails.