Class: Google::Apis::NetappV1::WeeklySchedule
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::WeeklySchedule
- 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 week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50
Instance Attribute Summary collapse
-
#day ⇒ String
Set the day or days of the week to make a snapshot.
-
#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) ⇒ WeeklySchedule
constructor
A new instance of WeeklySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeeklySchedule
Returns a new instance of WeeklySchedule.
2278 2279 2280 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day ⇒ String
Set the day or days of the week to make a snapshot. Accepts a comma separated
days of the week. Defaults to 'Sunday'.
Corresponds to the JSON property day
2260 2261 2262 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2260 def day @day end |
#hour ⇒ Float
Set the hour to start the snapshot (0-23), defaults to midnight (0).
Corresponds to the JSON property hour
2265 2266 2267 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2265 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
2271 2272 2273 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2271 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
2276 2277 2278 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2276 def snapshots_to_keep @snapshots_to_keep end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2283 2284 2285 2286 2287 2288 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 2283 def update!(**args) @day = args[:day] if args.key?(:day) @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 |