Class: Google::Apis::BaremetalsolutionV1alpha1::SetVolumeSnapshotSchedulePolicyRequest

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

Request for SetVolumeSnapshotSchedulePolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SetVolumeSnapshotSchedulePolicyRequest

Returns a new instance of SetVolumeSnapshotSchedulePolicyRequest.



857
858
859
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 857

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

Instance Attribute Details

#snapshot_schedule_policyString

Required. The name of the policy to set on the volume. Corresponds to the JSON property snapshotSchedulePolicy

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 855

def snapshot_schedule_policy
  @snapshot_schedule_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
end