Class: Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy
- 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 policy.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of this SnapshotSchedulePolicy.
-
#name ⇒ String
Output only.
-
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::Schedule>
The snapshot Schedules contained in this Policy.
-
#volumes ⇒ Array<String>
The names of the Volumes this policy is associated with.
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.
879 880 881 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 879 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this SnapshotSchedulePolicy.
Corresponds to the JSON property description
861 862 863 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 861 def description @description end |
#name ⇒ String
Output only. The name of this SnapshotSchedulePolicy.
Corresponds to the JSON property name
866 867 868 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 866 def name @name end |
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::Schedule>
The snapshot Schedules contained in this Policy. At most 5 Schedules may be
specified.
Corresponds to the JSON property schedules
872 873 874 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 872 def schedules @schedules end |
#volumes ⇒ Array<String>
The names of the Volumes this policy is associated with.
Corresponds to the JSON property volumes
877 878 879 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 877 def volumes @volumes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
884 885 886 887 888 889 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 884 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 |