Class: Google::Apis::NetappV1::MonthlySchedule

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 once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MonthlySchedule

Returns a new instance of MonthlySchedule.



1086
1087
1088
# File 'lib/google/apis/netapp_v1/classes.rb', line 1086

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

Instance Attribute Details

#days_of_monthString

Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to '1'. Corresponds to the JSON property daysOfMonth

Returns:

  • (String)


1068
1069
1070
# File 'lib/google/apis/netapp_v1/classes.rb', line 1068

def days_of_month
  @days_of_month
end

#hourFloat

Set the hour to start the snapshot (0-23), defaults to midnight (0). Corresponds to the JSON property hour

Returns:

  • (Float)


1073
1074
1075
# File 'lib/google/apis/netapp_v1/classes.rb', line 1073

def hour
  @hour
end

#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)


1079
1080
1081
# File 'lib/google/apis/netapp_v1/classes.rb', line 1079

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)


1084
1085
1086
# File 'lib/google/apis/netapp_v1/classes.rb', line 1084

def snapshots_to_keep
  @snapshots_to_keep
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1091
1092
1093
1094
1095
1096
# File 'lib/google/apis/netapp_v1/classes.rb', line 1091

def update!(**args)
  @days_of_month = args[:days_of_month] if args.key?(:days_of_month)
  @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