Class: Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy

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

Instance Method Summary collapse

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

#descriptionString

The description of this SnapshotSchedulePolicy. Corresponds to the JSON property description

Returns:

  • (String)


861
862
863
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 861

def description
  @description
end

#nameString

Output only. The name of this SnapshotSchedulePolicy. Corresponds to the JSON property name

Returns:

  • (String)


866
867
868
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 866

def name
  @name
end

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

#volumesArray<String>

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

Returns:

  • (Array<String>)


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