Class: Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#descriptionString

The description of the snapshot schedule policy. Corresponds to the JSON property description

Returns:

  • (String)


716
717
718
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 716

def description
  @description
end

#nameString

Output only. The name of the snapshot schedule policy. Corresponds to the JSON property name

Returns:

  • (String)


721
722
723
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 721

def name
  @name
end

#schedulesArray<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

#volumesArray<String>

The names of the volumes associated with this policy. Corresponds to the JSON property volumes

Returns:

  • (Array<String>)


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