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

MetadataOptions

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

Specifies the metadata options for running a transfer.

interface MetadataOptions {
acl?: "ACL_UNSPECIFIED" | "ACL_DESTINATION_BUCKET_DEFAULT" | "ACL_PRESERVE";
gid?: "GID_UNSPECIFIED" | "GID_SKIP" | "GID_NUMBER";
kmsKey?: "KMS_KEY_UNSPECIFIED" | "KMS_KEY_DESTINATION_BUCKET_DEFAULT" | "KMS_KEY_PRESERVE";
mode?: "MODE_UNSPECIFIED" | "MODE_SKIP" | "MODE_PRESERVE";
storageClass?:
| "STORAGE_CLASS_UNSPECIFIED"
| "STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT"
| "STORAGE_CLASS_PRESERVE"
| "STORAGE_CLASS_STANDARD"
| "STORAGE_CLASS_NEARLINE"
| "STORAGE_CLASS_COLDLINE"
| "STORAGE_CLASS_ARCHIVE";
symlink?: "SYMLINK_UNSPECIFIED" | "SYMLINK_SKIP" | "SYMLINK_PRESERVE";
temporaryHold?: "TEMPORARY_HOLD_UNSPECIFIED" | "TEMPORARY_HOLD_SKIP" | "TEMPORARY_HOLD_PRESERVE";
timeCreated?: "TIME_CREATED_UNSPECIFIED" | "TIME_CREATED_SKIP" | "TIME_CREATED_PRESERVE_AS_CUSTOM_TIME";
uid?: "UID_UNSPECIFIED" | "UID_SKIP" | "UID_NUMBER";
}

§Properties

§
acl?: "ACL_UNSPECIFIED" | "ACL_DESTINATION_BUCKET_DEFAULT" | "ACL_PRESERVE"
[src]

Specifies how each object's ACLs should be preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as ACL_DESTINATION_BUCKET_DEFAULT.

§
gid?: "GID_UNSPECIFIED" | "GID_SKIP" | "GID_NUMBER"
[src]

Specifies how each file's POSIX group ID (GID) attribute should be handled by the transfer. By default, GID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.

§
kmsKey?: "KMS_KEY_UNSPECIFIED" | "KMS_KEY_DESTINATION_BUCKET_DEFAULT" | "KMS_KEY_PRESERVE"
[src]

Specifies how each object's Cloud KMS customer-managed encryption key (CMEK) is preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as KMS_KEY_DESTINATION_BUCKET_DEFAULT.

§
mode?: "MODE_UNSPECIFIED" | "MODE_SKIP" | "MODE_PRESERVE"
[src]

Specifies how each file's mode attribute should be handled by the transfer. By default, mode is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.

§
storageClass?: "STORAGE_CLASS_UNSPECIFIED" | "STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT" | "STORAGE_CLASS_PRESERVE" | "STORAGE_CLASS_STANDARD" | "STORAGE_CLASS_NEARLINE" | "STORAGE_CLASS_COLDLINE" | "STORAGE_CLASS_ARCHIVE"
[src]

Specifies the storage class to set on objects being transferred to Google Cloud Storage buckets. If unspecified, the default behavior is the same as STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT.

§
temporaryHold?: "TEMPORARY_HOLD_UNSPECIFIED" | "TEMPORARY_HOLD_SKIP" | "TEMPORARY_HOLD_PRESERVE"
[src]

Specifies how each object's temporary hold status should be preserved for transfers between Google Cloud Storage buckets. If unspecified, the default behavior is the same as TEMPORARY_HOLD_PRESERVE.

§
timeCreated?: "TIME_CREATED_UNSPECIFIED" | "TIME_CREATED_SKIP" | "TIME_CREATED_PRESERVE_AS_CUSTOM_TIME"
[src]

Specifies how each object's timeCreated metadata is preserved for transfers. If unspecified, the default behavior is the same as TIME_CREATED_SKIP. This behavior is supported for transfers to GCS buckets from GCS, S3, Azure, S3 Compatible, and Azure sources.

§
uid?: "UID_UNSPECIFIED" | "UID_SKIP" | "UID_NUMBER"
[src]

Specifies how each file's POSIX user ID (UID) attribute should be handled by the transfer. By default, UID is not preserved. Only applicable to transfers involving POSIX file systems, and ignored for other transfers.