Class: Google::Apis::GkebackupV1::Schedule

Inherits:
Object
  • Object
show all
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

Schedule defines scheduling parameters for automatically creating Backups via this BackupPlan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



1714
1715
1716
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1714

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cron_scheduleString

A standard cron string that defines a repeating schedule for creating Backups via this 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

Returns:

  • (String)


1705
1706
1707
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1705

def cron_schedule
  @cron_schedule
end

#pausedBoolean Also known as: paused?

This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False Corresponds to the JSON property paused

Returns:

  • (Boolean)


1711
1712
1713
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1711

def paused
  @paused
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1719
1720
1721
1722
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1719

def update!(**args)
  @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
  @paused = args[:paused] if args.key?(:paused)
end