Class: Google::Apis::ComposerV1::ScheduledSnapshotsConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComposerV1::ScheduledSnapshotsConfig
 
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/composer_v1/classes.rb,
 lib/google/apis/composer_v1/representations.rb,
 lib/google/apis/composer_v1/representations.rb
Overview
The configuration for scheduled snapshot creation mechanism.
Instance Attribute Summary collapse
- 
  
    
      #enabled  ⇒ Boolean 
    
    
      (also: #enabled?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #snapshot_creation_schedule  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #snapshot_location  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #time_zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ScheduledSnapshotsConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ScheduledSnapshotsConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ ScheduledSnapshotsConfig
Returns a new instance of ScheduledSnapshotsConfig.
| 1247 1248 1249 | # File 'lib/google/apis/composer_v1/classes.rb', line 1247 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether scheduled snapshots creation is enabled.
Corresponds to the JSON property enabled
| 1225 1226 1227 | # File 'lib/google/apis/composer_v1/classes.rb', line 1225 def enabled @enabled end | 
#snapshot_creation_schedule ⇒ String
Optional. The cron expression representing the time when snapshots creation
mechanism runs. This field is subject to additional validation around
frequency of execution.
Corresponds to the JSON property snapshotCreationSchedule
| 1233 1234 1235 | # File 'lib/google/apis/composer_v1/classes.rb', line 1233 def snapshot_creation_schedule @snapshot_creation_schedule end | 
#snapshot_location ⇒ String
Optional. The Cloud Storage location for storing automatically created
snapshots.
Corresponds to the JSON property snapshotLocation
| 1239 1240 1241 | # File 'lib/google/apis/composer_v1/classes.rb', line 1239 def snapshot_location @snapshot_location end | 
#time_zone ⇒ String
Optional. Time zone that sets the context to interpret
snapshot_creation_schedule.
Corresponds to the JSON property timeZone
| 1245 1246 1247 | # File 'lib/google/apis/composer_v1/classes.rb', line 1245 def time_zone @time_zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1252 1253 1254 1255 1256 1257 | # File 'lib/google/apis/composer_v1/classes.rb', line 1252 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @snapshot_creation_schedule = args[:snapshot_creation_schedule] if args.key?(:snapshot_creation_schedule) @snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location) @time_zone = args[:time_zone] if args.key?(:time_zone) end |