ObjectsRestoreOptions
import type { ObjectsRestoreOptions } from "https://googleapis.deno.dev/v1/storage:v1.ts";
Additional options for Storage#objectsRestore.
interface ObjectsRestoreOptions {
copySourceAcl?: boolean;
generation: bigint;
ifGenerationMatch?: bigint;
ifGenerationNotMatch?: bigint;
ifMetagenerationMatch?: bigint;
ifMetagenerationNotMatch?: bigint;
projection?: "full" | "noAcl";
userProject?: string;
}§Properties
§
copySourceAcl?: boolean
[src]If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false.
§
ifGenerationMatch?: bigint
[src]Makes the operation conditional on whether the object's one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
§
ifGenerationNotMatch?: bigint
[src]Makes the operation conditional on whether none of the object's live generations match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
§
ifMetagenerationMatch?: bigint
[src]Makes the operation conditional on whether the object's one live metageneration matches the given value.