Class: Google::Apis::BaremetalsolutionV2::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
A snapshot schedule.
Instance Attribute Summary collapse
-
#crontab_spec ⇒ String
A crontab-like specification that the schedule uses to take snapshots.
-
#prefix ⇒ String
A list of snapshot names created in this schedule.
-
#retention_count ⇒ Fixnum
The maximum number of snapshots to retain in this schedule.
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.
666 667 668 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crontab_spec ⇒ String
A crontab-like specification that the schedule uses to take snapshots.
Corresponds to the JSON property crontabSpec
654 655 656 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 654 def crontab_spec @crontab_spec end |
#prefix ⇒ String
A list of snapshot names created in this schedule.
Corresponds to the JSON property prefix
659 660 661 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 659 def prefix @prefix end |
#retention_count ⇒ Fixnum
The maximum number of snapshots to retain in this schedule.
Corresponds to the JSON property retentionCount
664 665 666 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 664 def retention_count @retention_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
671 672 673 674 675 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 671 def update!(**args) @crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec) @prefix = args[:prefix] if args.key?(:prefix) @retention_count = args[:retention_count] if args.key?(:retention_count) end |