Class: Google::Apis::NetappV1::SnapshotPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetappV1::SnapshotPolicy
- 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
Snapshot Policy for a volume.
Instance Attribute Summary collapse
-
#daily_schedule ⇒ Google::Apis::NetappV1::DailySchedule
Make a snapshot every day e.g.
-
#enabled ⇒ Boolean
(also: #enabled?)
If enabled, make snapshots automatically according to the schedules.
-
#hourly_schedule ⇒ Google::Apis::NetappV1::HourlySchedule
Make a snapshot every hour e.g.
-
#monthly_schedule ⇒ Google::Apis::NetappV1::MonthlySchedule
Make a snapshot once a month e.g.
-
#weekly_schedule ⇒ Google::Apis::NetappV1::WeeklySchedule
Make a snapshot every week e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotPolicy
constructor
A new instance of SnapshotPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SnapshotPolicy
Returns a new instance of SnapshotPolicy.
1893 1894 1895 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1893 def initialize(**args) update!(**args) end |
Instance Attribute Details
#daily_schedule ⇒ Google::Apis::NetappV1::DailySchedule
Make a snapshot every day e.g. at 04:00, 05:20, 23:50
Corresponds to the JSON property dailySchedule
1869 1870 1871 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1869 def daily_schedule @daily_schedule end |
#enabled ⇒ Boolean Also known as: enabled?
If enabled, make snapshots automatically according to the schedules. Default
is false.
Corresponds to the JSON property enabled
1875 1876 1877 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1875 def enabled @enabled end |
#hourly_schedule ⇒ Google::Apis::NetappV1::HourlySchedule
Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.
Corresponds to the JSON property hourlySchedule
1881 1882 1883 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1881 def hourly_schedule @hourly_schedule end |
#monthly_schedule ⇒ Google::Apis::NetappV1::MonthlySchedule
Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50
Corresponds to the JSON property monthlySchedule
1886 1887 1888 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1886 def monthly_schedule @monthly_schedule end |
#weekly_schedule ⇒ Google::Apis::NetappV1::WeeklySchedule
Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50
Corresponds to the JSON property weeklySchedule
1891 1892 1893 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1891 def weekly_schedule @weekly_schedule end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1898 1899 1900 1901 1902 1903 1904 |
# File 'lib/google/apis/netapp_v1/classes.rb', line 1898 def update!(**args) @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule) @enabled = args[:enabled] if args.key?(:enabled) @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule) @monthly_schedule = args[:monthly_schedule] if args.key?(:monthly_schedule) @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule) end |