Class: Google::Apis::BaremetalsolutionV2::Schedule

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



666
667
668
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 666

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

Instance Attribute Details

#crontab_specString

A crontab-like specification that the schedule uses to take snapshots. Corresponds to the JSON property crontabSpec

Returns:

  • (String)


654
655
656
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 654

def crontab_spec
  @crontab_spec
end

#prefixString

A list of snapshot names created in this schedule. Corresponds to the JSON property prefix

Returns:

  • (String)


659
660
661
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 659

def prefix
  @prefix
end

#retention_countFixnum

The maximum number of snapshots to retain in this schedule. Corresponds to the JSON property retentionCount

Returns:

  • (Fixnum)


664
665
666
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 664

def retention_count
  @retention_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



671
672
673
674
675
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 671

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