Class: Google::Apis::NetappV1::MonthlySchedule
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::MonthlySchedule
- 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
-
#days_of_month ⇒ String
Set the day or days of the month to make a snapshot (1-31).
-
#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) ⇒ MonthlySchedule
constructor
A new instance of MonthlySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MonthlySchedule
Returns a new instance of MonthlySchedule.
1262 1263 1264 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1262 def initialize(**args) update!(**args) end |
Instance Attribute Details
#days_of_month ⇒ String
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
1244 1245 1246 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1244 def days_of_month @days_of_month end |
#hour ⇒ Float
Set the hour to start the snapshot (0-23), defaults to midnight (0).
Corresponds to the JSON property hour
1249 1250 1251 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1249 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
1255 1256 1257 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1255 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
1260 1261 1262 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1260 def snapshots_to_keep @snapshots_to_keep end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1267 1268 1269 1270 1271 1272 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1267 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 |