Class: Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1::Bucket::Lifecycle::Rule::Action
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/storage_v1/classes.rb,
 generated/google/apis/storage_v1/representations.rb,
 generated/google/apis/storage_v1/representations.rb
Overview
The action to take.
Instance Attribute Summary collapse
- 
  
    
      #storage_class  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Target storage class. 
- 
  
    
      #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
| 350 351 352 | # File 'generated/google/apis/storage_v1/classes.rb', line 350 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#storage_class ⇒ String
Target storage class. Required iff the type of the action is SetStorageClass.
Corresponds to the JSON property storageClass
| 343 344 345 | # File 'generated/google/apis/storage_v1/classes.rb', line 343 def storage_class @storage_class end | 
#type ⇒ String
Type of the action. Currently, only Delete and SetStorageClass are supported.
Corresponds to the JSON property type
| 348 349 350 | # File 'generated/google/apis/storage_v1/classes.rb', line 348 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 355 356 357 358 | # File 'generated/google/apis/storage_v1/classes.rb', line 355 def update!(**args) @storage_class = args[:storage_class] if args.key?(:storage_class) @type = args[:type] if args.key?(:type) end |