From e2886aaddfe0ecedabb4a2a6df24c04178fdcbe5 Mon Sep 17 00:00:00 2001 From: Manoj Ghosh Date: Fri, 13 Jan 2023 04:58:52 -0800 Subject: [PATCH] oracle-object-storage: expose the storage_tier option in config --- backend/oracleobjectstorage/options.go | 16 ++++++++++++++++ docs/content/oracleobjectstorage.md | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/backend/oracleobjectstorage/options.go b/backend/oracleobjectstorage/options.go index 9e7e65fd5..2916157be 100644 --- a/backend/oracleobjectstorage/options.go +++ b/backend/oracleobjectstorage/options.go @@ -123,6 +123,22 @@ func newOptions() []fs.Option { Value: "Default", Help: "Use the default profile", }}, + }, { + // Mapping from here: https://github.com/oracle/oci-go-sdk/blob/master/objectstorage/storage_tier.go + Name: "storage_tier", + Help: "The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm", + Default: "Standard", + Advanced: true, + Examples: []fs.OptionExample{{ + Value: "Standard", + Help: "Standard storage tier, this is the default tier", + }, { + Value: "InfrequentAccess", + Help: "InfrequentAccess storage tier", + }, { + Value: "Archive", + Help: "Archive storage tier", + }}, }, { Name: "upload_cutoff", Help: `Cutoff for switching to chunked upload. diff --git a/docs/content/oracleobjectstorage.md b/docs/content/oracleobjectstorage.md index 29a8d8e97..8c28f2898 100644 --- a/docs/content/oracleobjectstorage.md +++ b/docs/content/oracleobjectstorage.md @@ -290,6 +290,24 @@ Properties: Here are the Advanced options specific to oracleobjectstorage (Oracle Cloud Infrastructure Object Storage). +#### --oos-storage-tier + +The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm + +Properties: + +- Config: storage_tier +- Env Var: RCLONE_OOS_STORAGE_TIER +- Type: string +- Default: "Standard" +- Examples: + - "Standard" + - Standard storage tier, this is the default tier + - "InfrequentAccess" + - InfrequentAccess storage tier + - "Archive" + - Archive storage tier + #### --oos-upload-cutoff Cutoff for switching to chunked upload.