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.
-
#paused ⇒ Boolean
(also: #paused?)
Optional.
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.
1840 1841 1842 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1840 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
1831 1832 1833 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1831 def cron_schedule @cron_schedule 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
1837 1838 1839 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1837 def paused @paused end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1845 1846 1847 1848 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 1845 def update!(**args) @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule) @paused = args[:paused] if args.key?(:paused) end |