Help Center> OBS GO SDK> API Reference> Data Types> Object Transition Policy
Updated on 2022-02-10 GMT+08:00

Object Transition Policy

Type Definition

type Transition struct

Parameter Description

Field

Type

Optional or Mandatory

Description

StorageClass

StorageClassType

Mandatory when used as a request parameter

Storage class of the object after transition

NOTE:

The Standard storage class is not supported.

Date

time.Time

Mandatory when the parameter is used as a request parameter and Days is not set

Date when an object will be transited.

Days

int

Mandatory when the parameter is used as a request parameter and Date is not set

Number of days after which an object will be transited since its creation. The value must be a positive integer.