Class: Google::Apis::BaremetalsolutionV1alpha1::Schedule

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



778
779
780
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 778

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

Instance Attribute Details

#crontab_specString

The crontab-like specification that this Schedule will use to take snapshots. Corresponds to the JSON property crontabSpec

Returns:

  • (String)


766
767
768
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 766

def crontab_spec
  @crontab_spec
end

#prefixString

A string to prefix names of snapshots created under this Schedule. Corresponds to the JSON property prefix

Returns:

  • (String)


771
772
773
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 771

def prefix
  @prefix
end

#retention_countFixnum

The maximum number of snapshots to retain under this Schedule. Corresponds to the JSON property retentionCount

Returns:

  • (Fixnum)


776
777
778
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 776

def retention_count
  @retention_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



783
784
785
786
787
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 783

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