Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ObjectRetention

import type { ObjectRetention } from "https://googleapis.deno.dev/v1/storagebatchoperations:v1.ts";

Describes options for object retention update.

interface ObjectRetention {
retainUntilTime?: string;
retentionMode?: "RETENTION_MODE_UNSPECIFIED" | "LOCKED" | "UNLOCKED";
}

§Properties

§
retainUntilTime?: string
[src]

Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.

§
retentionMode?: "RETENTION_MODE_UNSPECIFIED" | "LOCKED" | "UNLOCKED"
[src]

Required. The retention mode of the object.