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.
1338 1339 1340 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1338 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
1326 1327 1328 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1326 def crontab_spec @crontab_spec end |
#prefix ⇒ String
A list of snapshot names created in this schedule.
Corresponds to the JSON property prefix
1331 1332 1333 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1331 def prefix @prefix end |
#retention_count ⇒ Fixnum
The maximum number of snapshots to retain in this schedule.
Corresponds to the JSON property retentionCount
1336 1337 1338 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1336 def retention_count @retention_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1343 1344 1345 1346 1347 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1343 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 |