projects

PATCH /v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}

Updates cached content configurations

Request

Path parameters

projectsIdstring required
locationsIdstring required
cachedContentsIdstring required

Query parameters

updateMaskstring google-fieldmask

Required. The list of fields to update.

Request body

createTimestring google-datetime

Output only. Creation time of the cache entry.

displayNamestring

Optional. Immutable. The user-generated meaningful display name of the cached content.

expireTimestring google-datetime

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

modelstring

Immutable. The name of the Model to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}

namestring

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

ttlstring google-duration

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

updateTimestring google-datetime

Output only. When the cache entry was last updated in UTC time.

Response

Successful response

createTimestring google-datetime

Output only. Creation time of the cache entry.

displayNamestring

Optional. Immutable. The user-generated meaningful display name of the cached content.

expireTimestring google-datetime

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

modelstring

Immutable. The name of the Model to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}

namestring

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

ttlstring google-duration

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

updateTimestring google-datetime

Output only. When the cache entry was last updated in UTC time.

Changes

No recorded changes to this operation across all 8 revisions of this API.