Class: Google::Apis::BaremetalsolutionV1alpha1::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A snapshot schedule.
Instance Attribute Summary collapse
-
#crontab_spec ⇒ String
The crontab-like specification that this Schedule will use to take snapshots.
-
#prefix ⇒ String
A string to prefix names of snapshots created under this Schedule.
-
#retention_count ⇒ Fixnum
The maximum number of snapshots to retain under this Schedule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule.
804 805 806 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 804 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crontab_spec ⇒ String
The crontab-like specification that this Schedule will use to take snapshots.
Corresponds to the JSON property crontabSpec
792 793 794 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 792 def crontab_spec @crontab_spec end |
#prefix ⇒ String
A string to prefix names of snapshots created under this Schedule.
Corresponds to the JSON property prefix
797 798 799 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 797 def prefix @prefix end |
#retention_count ⇒ Fixnum
The maximum number of snapshots to retain under this Schedule.
Corresponds to the JSON property retentionCount
802 803 804 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 802 def retention_count @retention_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
809 810 811 812 813 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 809 def update!(**args) @crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec) @prefix = args[:prefix] if args.key?(:prefix) @retention_count = args[:retention_count] if args.key?(:retention_count) end |