Class: Google::Apis::NetappV1::DailySchedule
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::DailySchedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb
Overview
Make a snapshot every day e.g. at 04:00, 05:20, 23:50
Instance Attribute Summary collapse
-
#hour ⇒ Float
Set the hour to start the snapshot (0-23), defaults to midnight (0).
-
#minute ⇒ Float
Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
-
#snapshots_to_keep ⇒ Float
The maximum number of Snapshots to keep for the hourly schedule Corresponds to the JSON property
snapshotsToKeep
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DailySchedule
constructor
A new instance of DailySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DailySchedule
Returns a new instance of DailySchedule.
463 464 465 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hour ⇒ Float
Set the hour to start the snapshot (0-23), defaults to midnight (0).
Corresponds to the JSON property hour
450 451 452 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 450 def hour @hour end |
#minute ⇒ Float
Set the minute of the hour to start the snapshot (0-59), defaults to the top
of the hour (0).
Corresponds to the JSON property minute
456 457 458 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 456 def minute @minute end |
#snapshots_to_keep ⇒ Float
The maximum number of Snapshots to keep for the hourly schedule
Corresponds to the JSON property snapshotsToKeep
461 462 463 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 461 def snapshots_to_keep @snapshots_to_keep end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
468 469 470 471 472 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 468 def update!(**args) @hour = args[:hour] if args.key?(:hour) @minute = args[:minute] if args.key?(:minute) @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) end |