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.



580
581
582
# File 'lib/google/apis/netapp_v1/classes.rb', line 580

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)


573
574
575
# File 'lib/google/apis/netapp_v1/classes.rb', line 573

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)


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