Class: Google::Apis::GkebackupV1::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
Defines scheduling parameters for automatically creating Backups via this BackupPlan.
Instance Attribute Summary collapse
-
#cron_schedule ⇒ String
Optional.
-
#next_scheduled_backup_time ⇒ String
Output only.
-
#paused ⇒ Boolean
(also: #paused?)
Optional.
-
#rpo_config ⇒ Google::Apis::GkebackupV1::RpoConfig
Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule.
2253 2254 2255 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2253 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cron_schedule ⇒ String
Optional. A standard cron string that
defines a repeating schedule for creating Backups via this BackupPlan. This is
mutually exclusive with the rpo_config field since at most one schedule can be
defined for a BackupPlan. If this is defined, then backup_retain_days must
also be defined. Default (empty): no automatic backup creation will occur.
Corresponds to the JSON property cronSchedule
2232 2233 2234 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2232 def cron_schedule @cron_schedule end |
#next_scheduled_backup_time ⇒ String
Output only. Start time of next scheduled backup under this BackupPlan by
either cron_schedule or rpo config.
Corresponds to the JSON property nextScheduledBackupTime
2238 2239 2240 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2238 def next_scheduled_backup_time @next_scheduled_backup_time end |
#paused ⇒ Boolean Also known as: paused?
Optional. This flag denotes whether automatic Backup creation is paused for
this BackupPlan. Default: False
Corresponds to the JSON property paused
2244 2245 2246 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2244 def paused @paused end |
#rpo_config ⇒ Google::Apis::GkebackupV1::RpoConfig
Defines RPO scheduling configuration for automatically creating Backups via
this BackupPlan.
Corresponds to the JSON property rpoConfig
2251 2252 2253 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2251 def rpo_config @rpo_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2258 2259 2260 2261 2262 2263 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2258 def update!(**args) @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule) @next_scheduled_backup_time = args[:next_scheduled_backup_time] if args.key?(:next_scheduled_backup_time) @paused = args[:paused] if args.key?(:paused) @rpo_config = args[:rpo_config] if args.key?(:rpo_config) end |