Class: Google::Apis::NetappV1::HourlySchedule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HourlySchedule

Returns a new instance of HourlySchedule.



621
622
623
# File 'lib/google/apis/netapp_v1/classes.rb', line 621

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#minuteFloat

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

Returns:

  • (Float)


614
615
616
# File 'lib/google/apis/netapp_v1/classes.rb', line 614

def minute
  @minute
end

#snapshots_to_keepFloat

The maximum number of Snapshots to keep for the hourly schedule Corresponds to the JSON property snapshotsToKeep

Returns:

  • (Float)


619
620
621
# File 'lib/google/apis/netapp_v1/classes.rb', line 619

def snapshots_to_keep
  @snapshots_to_keep
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



626
627
628
629
# File 'lib/google/apis/netapp_v1/classes.rb', line 626

def update!(**args)
  @minute = args[:minute] if args.key?(:minute)
  @snapshots_to_keep = args[:snapshots_to_keep] if args.key?(:snapshots_to_keep)
end