Class: Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
A snapshot schedule policy.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the snapshot schedule policy.
-
#name ⇒ String
Output only.
-
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV2::Schedule>
The snapshot schedules contained in this policy.
-
#volumes ⇒ Array<String>
The names of the volumes associated with this policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SnapshotSchedulePolicy
constructor
A new instance of SnapshotSchedulePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SnapshotSchedulePolicy
Returns a new instance of SnapshotSchedulePolicy.
734 735 736 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 734 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the snapshot schedule policy.
Corresponds to the JSON property description
716 717 718 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 716 def description @description end |
#name ⇒ String
Output only. The name of the snapshot schedule policy.
Corresponds to the JSON property name
721 722 723 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 721 def name @name end |
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV2::Schedule>
The snapshot schedules contained in this policy. You can specify a maxiumum of
5 schedules.
Corresponds to the JSON property schedules
727 728 729 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 727 def schedules @schedules end |
#volumes ⇒ Array<String>
The names of the volumes associated with this policy.
Corresponds to the JSON property volumes
732 733 734 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 732 def volumes @volumes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
739 740 741 742 743 744 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 739 def update!(**args) @description = args[:description] if args.key?(:description) @name = args[:name] if args.key?(:name) @schedules = args[:schedules] if args.key?(:schedules) @volumes = args[:volumes] if args.key?(:volumes) end |