Class: Google::Apis::NetappV1::HourlySchedule
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::HourlySchedule
- 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 hour e.g. at 04:00, 05:00, 06:00.
Instance Attribute Summary collapse
-
#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) ⇒ HourlySchedule
constructor
A new instance of HourlySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HourlySchedule
Returns a new instance of HourlySchedule.
580 581 582 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
573 574 575 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 573 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
578 579 580 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 578 def snapshots_to_keep @snapshots_to_keep end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
585 586 587 588 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 585 def update!(**args) @minute = args[:minute] if args.key?(:minute) @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep) end |