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.
-
#id ⇒ String
An identifier for the snapshot schedule policy, generated by the backend.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
Output only.
-
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV2::Schedule>
The snapshot schedules contained in this policy.
-
#state ⇒ String
The state of the snapshot schedule 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.
1366 1367 1368 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1366 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the snapshot schedule policy.
Corresponds to the JSON property description
1338 1339 1340 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1338 def description @description end |
#id ⇒ String
An identifier for the snapshot schedule policy, generated by the backend.
Corresponds to the JSON property id
1343 1344 1345 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1343 def id @id end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1348 1349 1350 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1348 def labels @labels end |
#name ⇒ String
Output only. The name of the snapshot schedule policy.
Corresponds to the JSON property name
1353 1354 1355 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1353 def name @name end |
#schedules ⇒ Array<Google::Apis::BaremetalsolutionV2::Schedule>
The snapshot schedules contained in this policy. You can specify a maximum of
5 schedules.
Corresponds to the JSON property schedules
1359 1360 1361 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1359 def schedules @schedules end |
#state ⇒ String
The state of the snapshot schedule policy.
Corresponds to the JSON property state
1364 1365 1366 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1364 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1371 1372 1373 1374 1375 1376 1377 1378 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1371 def update!(**args) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @schedules = args[:schedules] if args.key?(:schedules) @state = args[:state] if args.key?(:state) end |