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.



905
906
907
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 905

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


887
888
889
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 887

def description
  @description
end

#nameString

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

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 892

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



898
899
900
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 898

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>)


903
904
905
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 903

def volumes
  @volumes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



910
911
912
913
914
915
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 910

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