acl = $acl; } /** * @return self::ACL_* */ public function getAcl() { return $this->acl; } /** * 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. * * Accepted values: GID_UNSPECIFIED, GID_SKIP, GID_NUMBER * * @param self::GID_* $gid */ public function setGid($gid) { $this->gid = $gid; } /** * @return self::GID_* */ public function getGid() { return $this->gid; } /** * 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. * * Accepted values: KMS_KEY_UNSPECIFIED, KMS_KEY_DESTINATION_BUCKET_DEFAULT, * KMS_KEY_PRESERVE * * @param self::KMS_KEY_* $kmsKey */ public function setKmsKey($kmsKey) { $this->kmsKey = $kmsKey; } /** * @return self::KMS_KEY_* */ public function getKmsKey() { return $this->kmsKey; } /** * 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. * * Accepted values: MODE_UNSPECIFIED, MODE_SKIP, MODE_PRESERVE * * @param self::MODE_* $mode */ public function setMode($mode) { $this->mode = $mode; } /** * @return self::MODE_* */ public function getMode() { return $this->mode; } /** * 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. * * Accepted values: STORAGE_CLASS_UNSPECIFIED, * STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT, STORAGE_CLASS_PRESERVE, * STORAGE_CLASS_STANDARD, STORAGE_CLASS_NEARLINE, STORAGE_CLASS_COLDLINE, * STORAGE_CLASS_ARCHIVE * * @param self::STORAGE_CLASS_* $storageClass */ public function setStorageClass($storageClass) { $this->storageClass = $storageClass; } /** * @return self::STORAGE_CLASS_* */ public function getStorageClass() { return $this->storageClass; } /** * Specifies how symlinks should be handled by the transfer. By default, * symlinks are not preserved. Only applicable to transfers involving POSIX * file systems, and ignored for other transfers. * * Accepted values: SYMLINK_UNSPECIFIED, SYMLINK_SKIP, SYMLINK_PRESERVE * * @param self::SYMLINK_* $symlink */ public function setSymlink($symlink) { $this->symlink = $symlink; } /** * @return self::SYMLINK_* */ public function getSymlink() { return $this->symlink; } /** * 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. * * Accepted values: TEMPORARY_HOLD_UNSPECIFIED, TEMPORARY_HOLD_SKIP, * TEMPORARY_HOLD_PRESERVE * * @param self::TEMPORARY_HOLD_* $temporaryHold */ public function setTemporaryHold($temporaryHold) { $this->temporaryHold = $temporaryHold; } /** * @return self::TEMPORARY_HOLD_* */ public function getTemporaryHold() { return $this->temporaryHold; } /** * 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 Cloud * Storage buckets from Cloud Storage, Amazon S3, S3-compatible storage, and * Azure sources. * * Accepted values: TIME_CREATED_UNSPECIFIED, TIME_CREATED_SKIP, * TIME_CREATED_PRESERVE_AS_CUSTOM_TIME * * @param self::TIME_CREATED_* $timeCreated */ public function setTimeCreated($timeCreated) { $this->timeCreated = $timeCreated; } /** * @return self::TIME_CREATED_* */ public function getTimeCreated() { return $this->timeCreated; } /** * 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. * * Accepted values: UID_UNSPECIFIED, UID_SKIP, UID_NUMBER * * @param self::UID_* $uid */ public function setUid($uid) { $this->uid = $uid; } /** * @return self::UID_* */ public function getUid() { return $this->uid; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MetadataOptions::class, 'Google_Service_Storagetransfer_MetadataOptions');