OBSLifecycleRule Class Reference

Inherits from OBSBaseEntity : OBSAbstractModel : OBSMTLModel
Declared in OBSServiceCommonEntities.h
OBSServiceCommonEntities.m

Overview

Lifecycle rules

Other Methods

– initWithID:prefix:status:

Initialize a lifecycle configuration sub-class.

- (instancetype)initWithID:(NSString *)ID prefix:(NSString *)prefix status:(OBSLifecycleStatus)status

Parameters

ID

ID

prefix

Object name prefix

status

Rule status

Return Value

Lifecycle configuration object

Declared In

OBSServiceCommonEntities.h

Other Methods

  ID

Rule ID

@property (nonatomic, strong, nonnull) NSString *ID

Declared In

OBSServiceCommonEntities.h

  prefix

Object name prefix

@property (nonatomic, strong, nonnull) NSString *prefix

Declared In

OBSServiceCommonEntities.h

  status

Rule status (enabled or not)

@property (nonatomic, assign) OBSLifecycleStatus status

Declared In

OBSServiceCommonEntities.h

  transitionList

Element of the transition time and new storage class (applicable to the current version of the object) in the lifecycle rules

@property (nonatomic, strong, nonnull) NSMutableArray<OBSLifecycleTransition*> *transitionList

Declared In

OBSServiceCommonEntities.h

  noncurrentVersionTransitionList

Element of the transition time and new storage class (applicable to the noncurrent object versions) in the lifecycle rules

@property (nonatomic, strong, nonnull) NSMutableArray<OBSLifecycleNoncurrentVersionTransition*> *noncurrentVersionTransitionList

Declared In

OBSServiceCommonEntities.h

  expiration

Container of the expiration configuration for the current version of the object in the lifecycle rules

@property (nonatomic, strong, nonnull) OBSLifecycleExpiration *expiration

Declared In

OBSServiceCommonEntities.h

  noncurrentVersionExpiration

Container of the expiration configuration for noncurrent object versions in the lifecycle rules. If versioning is enabled or suspended for a bucket, you can set this property to delete noncurrent object versions that match the lifecycle rules.

@property (nonatomic, strong, nonnull) OBSLifecycleNoncurrentVersionExpiration *noncurrentVersionExpiration

Declared In

OBSServiceCommonEntities.h