class Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action

The action to take.

Attributes

storage_class[RW]

Target storage class. Required iff the type of the action is SetStorageClass. Corresponds to the JSON property `storageClass` @return [String]

type[RW]

Type of the action. Currently, only Delete and SetStorageClass are supported. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 480
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storage_v1/classes.rb, line 485
def update!(**args)
  @storage_class = args[:storage_class] if args.key?(:storage_class)
  @type = args[:type] if args.key?(:type)
end