Class: Google::Apis::StorageV1::Bucket::Versioning
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::StorageV1::Bucket::Versioning
 
- 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 bucket's versioning configuration.
Instance Attribute Summary collapse
- 
  
    
      #enabled  ⇒ Boolean 
    
    
      (also: #enabled?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    While set to true, versioning is fully enabled for this bucket. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Versioning 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Versioning. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Versioning
Returns a new instance of Versioning
| 519 520 521 | # File 'generated/google/apis/storage_v1/classes.rb', line 519 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
While set to true, versioning is fully enabled for this bucket.
Corresponds to the JSON property enabled
| 516 517 518 | # File 'generated/google/apis/storage_v1/classes.rb', line 516 def enabled @enabled end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 524 525 526 | # File 'generated/google/apis/storage_v1/classes.rb', line 524 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) end |