Class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1beta2/classes.rb,
 generated/google/apis/storage_v1beta2/representations.rb,
 generated/google/apis/storage_v1beta2/representations.rb
Overview
The action to take.
Instance Attribute Summary collapse
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type of the action. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Action 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Action. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Action
Returns a new instance of Action
| 241 242 243 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 241 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#type ⇒ String
Type of the action. Currently only Delete is supported.
Corresponds to the JSON property type
| 239 240 241 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 239 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 246 247 248 | # File 'generated/google/apis/storage_v1beta2/classes.rb', line 246 def update!(**args) @type = args[:type] if args.key?(:type) end |