•
Discovery API:storage.v1↗
Breaking Change
Docs

New Object Context API & Breaking Changes Clarified

Modified API Methods (1):

A significant update to Cloud Storage introduces the new objects.viewFullContext method. This method allows developers to retrieve comprehensive context information for objects, including extended data. It requires bucket, object, and contextKey parameters, with optional generation and userProject. The response is structured by the newly added ObjectFullContext schema, which includes fields like createTime, updateTime, key, value, type (with a CUSTOM enum), and a flexible extendedData object for arbitrary data.

The diff report indicates breaking changes related to bucket, contextKey, and object parameters becoming strictly required. However, these requirements are for the newly introduced objects.viewFullContext method. This means existing integrations and API calls are unaffected; developers integrating with this new method will simply need to ensure these parameters are provided from the outset. Minor internal adjustments were also made to the Policy schema's required permission annotations for setIamPolicy on objects and managed folders.